mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 00:07:45 +00:00
Remove invalid optimization in ItemStackHandler#setStackInSlot #3465
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user