diff options
Diffstat (limited to 'src/main/java/dulkirmod/mixins/ItemRendererMixin.java')
-rw-r--r-- | src/main/java/dulkirmod/mixins/ItemRendererMixin.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/dulkirmod/mixins/ItemRendererMixin.java b/src/main/java/dulkirmod/mixins/ItemRendererMixin.java index 18fd72a..458668e 100644 --- a/src/main/java/dulkirmod/mixins/ItemRendererMixin.java +++ b/src/main/java/dulkirmod/mixins/ItemRendererMixin.java @@ -25,11 +25,11 @@ public class ItemRendererMixin { } @Inject(method = {"doItemUsedTransformations"}, at = @At("HEAD"), cancellable = true) - public void useTransform(float swingProgress, CallbackInfo ci){ + public void useTransform(float swingProgress, CallbackInfo ci) { if (ItemAnimations.INSTANCE.scaledSwing(swingProgress)) ci.cancel(); } - @Inject(method ={"performDrinking"}, at = @At("HEAD"), cancellable = true) + @Inject(method = {"performDrinking"}, at = @At("HEAD"), cancellable = true) public void drinkTransform(AbstractClientPlayer clientPlayer, float partialTicks, CallbackInfo ci) { if (ItemAnimations.INSTANCE.rotationlessDrink(clientPlayer, partialTicks)) ci.cancel(); if (ItemAnimations.INSTANCE.scaledDrinking(clientPlayer, partialTicks, itemToRender)) ci.cancel(); |