mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
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:
parent
c20a7b969e
commit
c409afe159
1 changed files with 4 additions and 2 deletions
|
@ -102,12 +102,14 @@ 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++){
|
||||||
|
if(i != TileEntityToolTable.SLOT_OUTPUT){
|
||||||
this.dropSlotFromInventory(i, tile, world, x, y, z);
|
this.dropSlotFromInventory(i, tile, world, x, y, z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
super.breakBlock(world, x, y, z, block, par6);
|
super.breakBlock(world, x, y, z, block, par6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue