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,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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue