diff --git a/README.md b/README.md index 44ff277..89f0895 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,6 @@ Stack Size Edit [Fabric] is a mod that allows you to edit the stack size limit o ### **My Other Mods** -* [Create: Food](https://www.curseforge.com/minecraft/mc-mods/create-food-fabric) -* [Create: Metalwork](https://www.curseforge.com/minecraft/mc-mods/create-metalwork-fabric) +* [Create: Food](https://www.curseforge.com/minecraft/mc-mods/create-food) +* [Create: Metalwork](https://www.curseforge.com/minecraft/mc-mods/create-metalwork) * [Rune Essence](https://www.curseforge.com/minecraft/mc-mods/rune-essence) \ No newline at end of file diff --git a/build.gradle b/build.gradle index 998b6a0..6111efe 100644 --- a/build.gradle +++ b/build.gradle @@ -30,15 +30,15 @@ dependencies { // Fabric API. This is technically optional, but you probably want it anyway. modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" - include "curse.maven:stacc-api-820136:4995911" - modRuntimeOnly(include "curse.maven:stacc-api-820136:4995911") + include "curse.maven:stacc-api-820136:4995895" + modRuntimeOnly(include "curse.maven:stacc-api-820136:4995895") - modApi("me.shedaniel.cloth:cloth-config-fabric:13.0.121") { + modApi("me.shedaniel.cloth:cloth-config-fabric:11.1.106") { exclude(group: "net.fabricmc.fabric-api") } - modImplementation "com.terraformersmc:modmenu:9.0.0" - modApi "com.terraformersmc:modmenu:9.0.0" + modImplementation "com.terraformersmc:modmenu:7.2.2" + modApi "com.terraformersmc:modmenu:7.2.2" } diff --git a/gradle.properties b/gradle.properties index 7a4c5af..cdcfb76 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,14 +4,14 @@ org.gradle.parallel=true # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.20.4 -yarn_mappings=1.20.4+build.3 -loader_version=0.15.7 +minecraft_version=1.20.1 +yarn_mappings=1.20.1+build.10 +loader_version=0.14.24 # Mod Properties -mod_version = 1.0.3-fabric +mod_version = 1.0.4-1.20.1-fabric maven_group = net.averageanime.stacksizeedit archives_base_name = stacksizeedit # Dependencies -fabric_version=0.96.11+1.20.4 \ No newline at end of file +fabric_version=0.90.7+1.20.1 \ No newline at end of file diff --git a/src/main/java/net/averageanime/stacksizeedit/config/ModConfig.java b/src/main/java/net/averageanime/stacksizeedit/config/ModConfig.java index 49c4ebd..e2755cc 100644 --- a/src/main/java/net/averageanime/stacksizeedit/config/ModConfig.java +++ b/src/main/java/net/averageanime/stacksizeedit/config/ModConfig.java @@ -18,7 +18,8 @@ public class ModConfig implements ConfigData { @Comment("Format: §emod:name:stack_size §ror §e#tag:name:stack_size.") @ConfigEntry.Category("StackSettings") public List itemOverride = List.of( - "#c:not_stackable:1" + "#c:not_stackable:1", + "#c:16_stackable:16" ); @Comment("Set this to §aYes §fif you want font size to scale with amount.") diff --git a/src/main/java/net/averageanime/stacksizeedit/mixin/DispenserBehaviorMixin.java b/src/main/java/net/averageanime/stacksizeedit/mixin/DispenserBehaviorMixin.java index 0e1943c..c531938 100644 --- a/src/main/java/net/averageanime/stacksizeedit/mixin/DispenserBehaviorMixin.java +++ b/src/main/java/net/averageanime/stacksizeedit/mixin/DispenserBehaviorMixin.java @@ -23,15 +23,15 @@ public ItemStack dispenseSilently(BlockPointer pointer, ItemStack stack) { ItemDispenserBehavior fallbackBehavior = new ItemDispenserBehavior(); ItemStack emptyBucketStack = new ItemStack(Items.BUCKET); FluidModificationItem fluidModificationItem = (FluidModificationItem) stack.getItem(); - BlockPos blockPos = pointer.pos().offset(pointer.state().get(DispenserBlock.FACING)); - World world = pointer.world(); + BlockPos blockPos = pointer.getPos().offset(pointer.getBlockState().get(DispenserBlock.FACING)); + World world = pointer.getWorld(); if (fluidModificationItem.placeFluid( null, world, blockPos, null)) { fluidModificationItem.onEmptied( null, world, stack, blockPos); if (stack.getCount() > 1) { ItemStack newStack = stack.copy(); newStack.decrement(1); - if (((DispenserBlockEntity)pointer.blockEntity()).addToFirstFreeSlot(emptyBucketStack.copy()) < 0) { + if (((DispenserBlockEntity)pointer.getBlockEntity()).addToFirstFreeSlot(emptyBucketStack.copy()) < 0) { fallbackBehavior.dispense(pointer, emptyBucketStack.copy()); } return newStack;