Skip to content

Commit afe27c0

Browse files
committed
Don't have the Portable QIO Dashboard fire the re-equip animation every time the contents of a crafting window changes
1 parent d742d96 commit afe27c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/mekanism/common/item/ItemPortableQIODashboard.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ public void appendHoverText(@NotNull ItemStack stack, @NotNull Item.TooltipConte
6060
super.appendHoverText(stack, context, tooltip, flag);
6161
}
6262

63+
@Override
64+
public boolean shouldCauseReequipAnimation(@NotNull ItemStack oldStack, @NotNull ItemStack newStack, boolean slotChanged) {
65+
return slotChanged || oldStack.getItem() != newStack.getItem();
66+
}
67+
6368
@NotNull
6469
@Override
6570
public InteractionResultHolder<ItemStack> use(@NotNull Level world, @NotNull Player player, @NotNull InteractionHand hand) {

0 commit comments

Comments
 (0)