From c409afe159f8228c22969562547026a08679b61a Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 22 Sep 2015 23:50:16 +0200 Subject: [PATCH] Made it less likely for me to forget updating the item dropping mechism of the tool table if I change anything with the slot numbers --- .../ellpeck/actuallyadditions/blocks/BlockToolTable.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/ellpeck/actuallyadditions/blocks/BlockToolTable.java b/src/main/java/ellpeck/actuallyadditions/blocks/BlockToolTable.java index 6a0d4e5bd..e974761a3 100644 --- a/src/main/java/ellpeck/actuallyadditions/blocks/BlockToolTable.java +++ b/src/main/java/ellpeck/actuallyadditions/blocks/BlockToolTable.java @@ -102,8 +102,10 @@ public class BlockToolTable extends BlockContainerBase implements INameableItem{ if(aTile instanceof TileEntityInventoryBase){ TileEntityInventoryBase tile = (TileEntityInventoryBase)aTile; if(tile.getSizeInventory() > 0){ - for(int i = 0; i < tile.getSizeInventory()-1; i++){ - this.dropSlotFromInventory(i, tile, world, x, y, z); + for(int i = 0; i < tile.getSizeInventory(); i++){ + if(i != TileEntityToolTable.SLOT_OUTPUT){ + this.dropSlotFromInventory(i, tile, world, x, y, z); + } } } }