From ecde65fe2a4fba8625556d771b4ffb11c2725df4 Mon Sep 17 00:00:00 2001 From: ACGaming <4818419+ACGaming@users.noreply.github.com> Date: Thu, 11 Jul 2024 09:32:29 +0200 Subject: [PATCH] Disable electric staff re-equip animation --- .../mods/elementarystaffs/mixin/UTElectricStaffMixin.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/mod/acgaming/universaltweaks/mods/elementarystaffs/mixin/UTElectricStaffMixin.java b/src/main/java/mod/acgaming/universaltweaks/mods/elementarystaffs/mixin/UTElectricStaffMixin.java index 1a53085d..a3356952 100644 --- a/src/main/java/mod/acgaming/universaltweaks/mods/elementarystaffs/mixin/UTElectricStaffMixin.java +++ b/src/main/java/mod/acgaming/universaltweaks/mods/elementarystaffs/mixin/UTElectricStaffMixin.java @@ -42,4 +42,10 @@ public void utElectricStaff(World worldIn, EntityPlayer p, EnumHand handIn, Call p.getHeldItem(handIn).damageItem(1, p); cir.setReturnValue(super.onItemRightClick(worldIn, p, handIn)); } + + @Override + public boolean shouldCauseReequipAnimation(ItemStack oldStack, ItemStack newStack, boolean slotChanged) + { + return false; + } } \ No newline at end of file