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

This commit is contained in:
Ellpeck 2015-09-22 23:50:16 +02:00
parent c20a7b969e
commit c409afe159

View file

@ -102,8 +102,10 @@ public class BlockToolTable extends BlockContainerBase implements INameableItem{
if(aTile instanceof TileEntityInventoryBase){ if(aTile instanceof TileEntityInventoryBase){
TileEntityInventoryBase tile = (TileEntityInventoryBase)aTile; TileEntityInventoryBase tile = (TileEntityInventoryBase)aTile;
if(tile.getSizeInventory() > 0){ if(tile.getSizeInventory() > 0){
for(int i = 0; i < tile.getSizeInventory()-1; i++){ for(int i = 0; i < tile.getSizeInventory(); i++){
this.dropSlotFromInventory(i, tile, world, x, y, z); if(i != TileEntityToolTable.SLOT_OUTPUT){
this.dropSlotFromInventory(i, tile, world, x, y, z);
}
} }
} }
} }