Small things

This commit is contained in:
Arcaratus 2015-06-14 10:33:01 -04:00
parent 41b42c9447
commit 5e2a620a3b
9 changed files with 144 additions and 45 deletions

View file

@ -85,15 +85,22 @@ public class BlockSocket extends BlockContainer
newItem.stackSize = 1;
--playerItem.stackSize;
tileEntity.setInventorySlotContents(0, newItem);
return true;
}
} else if (tileEntity.getStackInSlot(0) != null && playerItem == null)
else
{
return false;
}
}
else if (tileEntity.getStackInSlot(0) != null && playerItem == null)
{
player.inventory.addItemStackToInventory(tileEntity.getStackInSlot(0));
tileEntity.setInventorySlotContents(0, null);
tileEntity.setActive();
return true;
}
world.markBlockForUpdate(x, y, z);
return true;
return false;
}
@Override