aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHKS-HNS <business@hks-hns.com>2024-07-24 22:02:21 +0200
committerHKS-HNS <business@hks-hns.com>2024-07-24 22:02:21 +0200
commita9b6f5db55405269ebf948fe031c31af2590c4de (patch)
tree4556614c2ed85f017b471c0aac85d0244d037584 /src
parent7719f7e902276874c2425091fd4f3fbc37ace3c8 (diff)
downloadgloppers-a9b6f5db55405269ebf948fe031c31af2590c4de.tar.gz
gloppers-a9b6f5db55405269ebf948fe031c31af2590c4de.tar.bz2
gloppers-a9b6f5db55405269ebf948fe031c31af2590c4de.zip
Updated to 1.21
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/notnite/gloppers/mixin/HopperBlockEntityMixin.java4
-rw-r--r--src/main/resources/fabric.mod.json4
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"
}
}