Skip to content

Commit

Permalink
Drop void upgrade when breaking drawers that have one
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed May 8, 2015
1 parent b224d20 commit 05032c9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ public void breakBlock (World world, int x, int y, int z, Block block, int meta)
dropBlockAsItem(world, x, y, z, new ItemStack(ModItems.upgrade, 1, tile.getStorageLevel()));
if (tile.getStatusLevel() > 0)
dropBlockAsItem(world, x, y, z, new ItemStack(ModItems.upgradeStatus, 1, tile.getStatusLevel()));
if (tile.isVoid())
dropBlockAsItem(world, x, y, z, new ItemStack(ModItems.upgradeVoid));

for (int i = 0; i < tile.getDrawerCount(); i++) {
if (!tile.isDrawerEnabled(i))
Expand Down

0 comments on commit 05032c9

Please sign in to comment.