Fix drawer voiding items on full inventory (#59)

This commit is contained in:
loenaaaa authored and GitHub committed 2026-02-10 19:50:53 +01:00
1 parent ca82cc9489
commit b6517015ad
1 file changed
+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;
}