Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit 09e58b4

Browse files
committed
fix needing fabricAPI closes #26
1 parent 936587e commit 09e58b4

4 files changed

Lines changed: 15 additions & 11 deletions

File tree

build.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,20 @@ dependencies {
3535
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
3636

3737
// Fabric API
38-
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
39-
/*
38+
//modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
4039
modIncludeImplementation(fabricApi.module("fabric-api-base", project.fabric_version))
4140
modIncludeImplementation(fabricApi.module("fabric-rendering-data-attachment-v1", project.fabric_version))
4241
modIncludeImplementation(fabricApi.module("fabric-lifecycle-events-v1", project.fabric_version))
43-
*/
44-
42+
modIncludeImplementation(fabricApi.module("fabric-registry-sync-v0", project.fabric_version))
4543

4644
// Cloth Config
47-
modIncludeImplementation("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}")
45+
modIncludeImplementation("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}"){
46+
exclude(group: "net.fabricmc.fabric-api")
47+
}
48+
// Cloth devs wont update fabric api, so you cant use it certain versions without excluding it's fabric api
49+
// but because you excluded its instance of fabric api, you need to re-add the bits it uses
50+
modIncludeImplementation(fabricApi.module("fabric-screen-api-v1", project.fabric_version))
51+
modIncludeImplementation(fabricApi.module("fabric-resource-loader-v0", project.fabric_version))
4852

4953
// Mod Menu
5054
modImplementation("com.terraformersmc:modmenu:${project.mod_menu_version}")

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ org.gradle.jvmargs=-Xmx1G
66
# check these on https://fabricmc.net/develop/
77
minecraft_version=1.18.2
88
yarn_mappings=1.18.2+build.3
9-
loader_version=0.14.5
9+
loader_version=0.14.6
1010

1111
# Mod Properties
1212
mod_version = 2.0.0
1313
maven_group = com.HorseBuff
1414
archives_base_name = HorseBuff
1515

1616
# Dependencies
17-
fabric_version=0.51.1+1.18.2
18-
cloth_config_version=6.0.42
17+
fabric_version=0.53.4+1.18.2
18+
cloth_config_version=6.2.62
1919
mod_menu_version=3.0.0

src/main/java/net/F53/HorseBuff/mixin/Client/InventoryAccessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public abstract class InventoryAccessor {
2020

2121
@Shadow @Nullable public ClientPlayerEntity player;
2222

23-
@Redirect(method="net/minecraft/client/MinecraftClient.handleInputEvents()V", at = @At(value = "INVOKE", target = "net/minecraft/client/network/ClientPlayerEntity.openRidingInventory ()V"))
24-
void teergtoind(ClientPlayerEntity instance){
23+
@Redirect(method= "handleInputEvents()V", at = @At(value = "INVOKE", target = "net/minecraft/client/network/ClientPlayerEntity.openRidingInventory ()V"))
24+
void playerInventoryAccess(ClientPlayerEntity instance){
2525
assert this.player != null;
2626
if (MinecraftClient.getInstance().options.sprintKey.isPressed()) {
2727
tutorialManager.onInventoryOpened();

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
],
3333

3434
"depends": {
35-
"fabricloader": ">=0.13.3",
35+
"fabricloader": ">=0.14.6",
3636
"minecraft": "1.18.x",
3737
"java": ">=17"
3838
}

0 commit comments

Comments
 (0)