Skip to content

Commit 5acb80d

Browse files
committed
support RBA 1.0.2 + up version
1 parent 7f459c6 commit 5acb80d

4 files changed

Lines changed: 14 additions & 2 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ yarn_mappings=1.21+build.9
99
loader_version=0.16.10
1010

1111
# Mod Properties
12-
mod_version=1.0.0
12+
mod_version=1.0.1
1313
maven_group=com.jomlom.nearbycrafting
1414
archives_base_name=nearbycrafting
1515

libs/recipebookaccess-1.0.2.jar

54 Bytes
Binary file not shown.

src/main/java/com/jomlom/nearbycrafting/mixin/PlayerScreenHandlerMixin.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
public abstract class PlayerScreenHandlerMixin implements RecipeBookInventoryProvider {
1919

2020
@Shadow @Final private PlayerEntity owner;
21+
@Shadow @Final public static int CRAFTING_INPUT_START;
22+
@Shadow @Final public static int CRAFTING_INPUT_END;
2123

2224
@Override
2325
public List<Inventory> getInventoriesForAutofill() {
@@ -35,4 +37,14 @@ public List<Inventory> getInventoriesForAutofill() {
3537
inventories.add(owner.getInventory());
3638
return inventories;
3739
}
40+
41+
@Override
42+
public int inputSlotsStartIndex() {
43+
return CRAFTING_INPUT_START;
44+
}
45+
46+
@Override
47+
public int inputSlotsEndIndex() {
48+
return CRAFTING_INPUT_END;
49+
}
3850
}

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"minecraft": ">=1.21 <=1.21.1",
3737
"java": ">=21",
3838
"fabric-api": "*",
39-
"recipebookaccess": ">=1.0.1",
39+
"recipebookaccess": ">=1.0.2",
4040
"modmenu": ">=11.0.0",
4141
"yet_another_config_lib_v3": ">=3.6.1+1.21.4-fabric"
4242
},

0 commit comments

Comments
 (0)