diff --git a/src/main/java/me/mixces/animatium/mixins/model/item/MixinUsingItemProperty.java b/src/main/java/me/mixces/animatium/mixins/model/item/MixinUsingItemProperty.java index 4ece809..3f5e07c 100644 --- a/src/main/java/me/mixces/animatium/mixins/model/item/MixinUsingItemProperty.java +++ b/src/main/java/me/mixces/animatium/mixins/model/item/MixinUsingItemProperty.java @@ -13,14 +13,14 @@ @Mixin(UsingItemProperty.class) public abstract class MixinUsingItemProperty { -// @ModifyReturnValue(method = "getValue", at = @At(value = "RETURN")) -// private boolean animatium$getValue(boolean original, @Local(argsOnly = true) ItemStack stack, @Local(argsOnly = true) ModelTransformationMode modelTransformationMode) { -// if (AnimatiumConfig.getInstance().disableItemUsingTextureInGui && -// (stack.getItem() instanceof BowItem || stack.getItem() instanceof CrossbowItem) && -// modelTransformationMode == ModelTransformationMode.GUI) { -// return false; -// } else { -// return original; -// } -// } + @ModifyReturnValue(method = "getValue", at = @At(value = "RETURN")) + private boolean animatium$getValue(boolean original, @Local(argsOnly = true) ItemStack stack, @Local(argsOnly = true) ModelTransformationMode modelTransformationMode) { + if (AnimatiumConfig.getInstance().disableItemUsingTextureInGui && + (stack.getItem() instanceof BowItem || stack.getItem() instanceof CrossbowItem) && + modelTransformationMode == ModelTransformationMode.GUI) { + return false; + } else { + return original; + } + } }