Fix dupe glitch

This commit is contained in:
Raoul Van den Berge
2016-03-28 23:42:17 +02:00
parent 0e868cbed3
commit ae585d7e02

View File

@@ -74,12 +74,12 @@ public class TileGrid extends TileMachine {
}
public void onCrafted(ContainerGrid container) {
if (isConnected() && !worldObj.isRemote) {
if (!worldObj.isRemote) {
for (int i = 0; i < craftingInventory.getSizeInventory(); ++i) {
ItemStack slot = craftingInventory.getStackInSlot(i);
if (slot != null) {
if (slot.stackSize == 1) {
if (slot.stackSize == 1 && isConnected()) {
craftingInventory.setInventorySlotContents(i, getController().take(slot.copy()));
} else {
craftingInventory.decrStackSize(i, 1);