aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/dulkirmod/mixins/ItemRendererMixin.java6
-rw-r--r--src/main/java/dulkirmod/mixins/MixinEntityLivingBase.java2
-rw-r--r--src/main/java/dulkirmod/mixins/MixinGuiContainer.java2
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();