Remove invalid optimization in ItemStackHandler#setStackInSlot #3465

This commit is contained in:
mezz committed 2018-05-12 21:07:25 -07:00
1 parent a38f5fd6a2
commit dae7bcee4b
1 file changed
-2
@@ -56,8 +56,6 @@ public class ItemStackHandler implements IItemHandler, IItemHandlerModifiable, I
public void setStackInSlot(int slot, @Nonnull ItemStack stack)
{
validateSlotIndex(slot);
if (ItemStack.areItemStacksEqual(this.stacks.get(slot), stack))
return;
this.stacks.set(slot, stack);
onContentsChanged(slot);
}