diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-11-01 13:33:36 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-11-01 13:33:36 +0100 |
commit | 5ded107137a04fdbdfa718436a016af98cadd28e (patch) | |
tree | 540b0e234a62c327bcdfe64161aeec07848c848c | |
parent | 21171955bde8025ad31b72ebfaf57019d0cecf36 (diff) | |
download | DulkirMod-5ded107137a04fdbdfa718436a016af98cadd28e.tar.gz DulkirMod-5ded107137a04fdbdfa718436a016af98cadd28e.tar.bz2 DulkirMod-5ded107137a04fdbdfa718436a016af98cadd28e.zip |
its the same
-rw-r--r-- | src/main/java/dulkirmod/mixins/ItemRendererMixin.java | 6 | ||||
-rw-r--r-- | src/main/java/dulkirmod/mixins/MixinEntityLivingBase.java | 2 | ||||
-rw-r--r-- | src/main/java/dulkirmod/mixins/MixinGuiContainer.java | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/dulkirmod/mixins/ItemRendererMixin.java b/src/main/java/dulkirmod/mixins/ItemRendererMixin.java index 18fd72a..0fb56e4 100644 --- a/src/main/java/dulkirmod/mixins/ItemRendererMixin.java +++ b/src/main/java/dulkirmod/mixins/ItemRendererMixin.java @@ -19,17 +19,17 @@ public class ItemRendererMixin { @Shadow private ItemStack itemToRender; - @Inject(method = {"transformFirstPersonItem(FF)V"}, at = @At("HEAD"), cancellable = true) + @Inject(method = "transformFirstPersonItem(FF)V", at = @At("HEAD"), cancellable = true) public void itemTransform(float equipProgress, float swingProgress, CallbackInfo ci) { if (ItemAnimations.INSTANCE.itemTransforHook(equipProgress, swingProgress)) ci.cancel(); } - @Inject(method = {"doItemUsedTransformations"}, at = @At("HEAD"), cancellable = true) + @Inject(method = "doItemUsedTransformations", at = @At("HEAD"), cancellable = true) 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(); diff --git a/src/main/java/dulkirmod/mixins/MixinEntityLivingBase.java b/src/main/java/dulkirmod/mixins/MixinEntityLivingBase.java index 43a6c27..afd1452 100644 --- a/src/main/java/dulkirmod/mixins/MixinEntityLivingBase.java +++ b/src/main/java/dulkirmod/mixins/MixinEntityLivingBase.java @@ -18,7 +18,7 @@ public abstract class MixinEntityLivingBase extends MixinEntity { @Shadow public abstract PotionEffect getActivePotionEffect(Potion potionIn); - @Inject(method = {"getArmSwingAnimationEnd()I"}, at = @At("HEAD"), cancellable = true) + @Inject(method = "getArmSwingAnimationEnd()I", at = @At("HEAD"), cancellable = true) public void adjustSwingLength(CallbackInfoReturnable<Integer> cir) { if (!DulkirMod.Companion.getConfig().getCustomAnimations()) return; int length = DulkirMod.Companion.getConfig().getIgnoreHaste() ? 6 : this.isPotionActive(Potion.digSpeed) ? diff --git a/src/main/java/dulkirmod/mixins/MixinGuiContainer.java b/src/main/java/dulkirmod/mixins/MixinGuiContainer.java index 2ffa02d..1f421ed 100644 --- a/src/main/java/dulkirmod/mixins/MixinGuiContainer.java +++ b/src/main/java/dulkirmod/mixins/MixinGuiContainer.java @@ -16,7 +16,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(GuiContainer.class) public abstract class MixinGuiContainer extends GuiScreen { - @Inject(at=@At("HEAD"), method="drawSlot", cancellable = true) + @Inject(method="drawSlot", at=@At("HEAD"), cancellable = true) public void drawSlot(Slot slotIn, CallbackInfo ci) { if (Croesus.Companion.inCroesus() && Croesus.Companion.isChestOpened(slotIn)) { ci.cancel(); |