aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/xmrvizzy/skyblocker/mixin/ItemMixin.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/xmrvizzy/skyblocker/mixin/ItemMixin.java')
-rw-r--r--src/main/java/me/xmrvizzy/skyblocker/mixin/ItemMixin.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/main/java/me/xmrvizzy/skyblocker/mixin/ItemMixin.java b/src/main/java/me/xmrvizzy/skyblocker/mixin/ItemMixin.java
index fdede686..99d42640 100644
--- a/src/main/java/me/xmrvizzy/skyblocker/mixin/ItemMixin.java
+++ b/src/main/java/me/xmrvizzy/skyblocker/mixin/ItemMixin.java
@@ -13,18 +13,10 @@ import net.minecraft.item.ItemStack;
@Mixin(Item.class)
public abstract class ItemMixin {
@WrapOperation(
- method = "getItemBarColor",
+ method = {"getItemBarColor", "getItemBarStep"},
at = @At(value = "FIELD", target = "Lnet/minecraft/item/Item;maxDamage:I", opcode = Opcodes.GETFIELD)
)
- private int skyblocker$handlePickoDrillBarColor(Item item, Operation<Integer> original, ItemStack stack) {
- return stack.getMaxDamage();
- }
-
- @WrapOperation(
- method = "getItemBarStep",
- at = @At(value = "FIELD", target = "Lnet/minecraft/item/Item;maxDamage:I", opcode = Opcodes.GETFIELD)
- )
- private int skyblocker$handlePickoDrillBarStep(Item item, Operation<Integer> original, ItemStack stack) {
+ private int skyblocker$handlePickoDrillBar(Item item, Operation<Integer> original, ItemStack stack) {
return stack.getMaxDamage();
}
}