mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 03:49:22 +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){
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue