fix fluid dupe bug with other tileentity's

This commit is contained in:
maggi373 committed 2022-11-21 19:37:21 +01:00
1 parent e27cdcbe1c
commit 0fbda87bb6
5 files changed
+75

No files matched your search

@@ -600,4 +600,19 @@ public class TileEntityElectricPump extends TileEntityElectricBlock implements I
break;
}
}
@Override
public int getInventoryStackLimit()
{
return 1;
}
@Override
public void setInventorySlotContents(int slotID, ItemStack itemstack)
{
inventory[slotID] = itemstack;
if(itemstack != null && itemstack.stackSize > getInventoryStackLimit())
{
itemstack.stackSize = getInventoryStackLimit();
}
}
}