diff options
author | Julian <hi@notnite.com> | 2024-07-24 21:42:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-24 21:42:11 -0400 |
commit | 9f87ba4eecf3eecd5efe5355f23886c08e07a6d0 (patch) | |
tree | 0be406ac0b2cd2595232ca137348835f7178cb69 /src/main | |
parent | 40c0e869ad1edd5524b409d50d8733003c4d0c31 (diff) | |
parent | 66cca351c3a0f49ceaf15b4b5052a619a1f39228 (diff) | |
download | gloppers-9f87ba4eecf3eecd5efe5355f23886c08e07a6d0.tar.gz gloppers-9f87ba4eecf3eecd5efe5355f23886c08e07a6d0.tar.bz2 gloppers-9f87ba4eecf3eecd5efe5355f23886c08e07a6d0.zip |
1.21 Update
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/notnite/gloppers/mixin/HopperBlockEntityMixin.java | 4 | ||||
-rw-r--r-- | src/main/resources/fabric.mod.json | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/notnite/gloppers/mixin/HopperBlockEntityMixin.java b/src/main/java/com/notnite/gloppers/mixin/HopperBlockEntityMixin.java index 7637cc8..d88e8bc 100644 --- a/src/main/java/com/notnite/gloppers/mixin/HopperBlockEntityMixin.java +++ b/src/main/java/com/notnite/gloppers/mixin/HopperBlockEntityMixin.java @@ -57,9 +57,9 @@ public abstract class HopperBlockEntityMixin { // a static variable to keep track of what slot we're removing from. @Redirect( method = "insert", - at = @At(value = "INVOKE", target = "Lnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;") + at = @At(value = "INVOKE", target = "Lnet/minecraft/block/entity/HopperBlockEntity;removeStack(II)Lnet/minecraft/item/ItemStack;") ) - private static ItemStack insert$gloppersRemoveStack(Inventory instance, int slot, int amount) { + private static ItemStack insert$gloppersRemoveStack(HopperBlockEntity instance, int slot, int amount) { dirtySlotState = slot; return instance.getStack(slot); } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index b75428f..e023250 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -18,7 +18,7 @@ ], "depends": { "fabricloader": ">=0.14.19", - "minecraft": "~1.20", - "java": ">=17" + "minecraft": "~1.21", + "java": ">=21" } } |