mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-22 13:09:47 +00:00
Fix drawer voiding items on full inventory (#59)
This commit is contained in:
1 parent
ca82cc9489
commit
b6517015ad
1 file changed
+1
-2
+1
-2
@@ -434,9 +434,8 @@ public abstract class TileEntityDrawers extends BaseTileEntity implements IDrawe
|
||||
|
||||
private void handleItemTransfer(EntityPlayer player, World world, BlockDrawers block, ItemStack item, int x, int y,
|
||||
int z, int face) {
|
||||
if (player.inventory.addItemStackToInventory(item)) {
|
||||
if (!player.inventory.addItemStackToInventory(item)) {
|
||||
dropFromFace(world, block, item, x, y, z, face);
|
||||
world.markBlockForUpdate(x, y, z);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user