Skip to content

Commit

Permalink
Drop status upgrades when breaking drawers. Fixes #38
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Oct 23, 2014
1 parent 1cf20af commit 390ac1e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ public void breakBlock (World world, int x, int y, int z, Block block, int meta)
if (tile != null) {
if (tile.getLevel() > 1)
dropBlockAsItem(world, x, y, z, new ItemStack(ModItems.upgrade, 1, tile.getLevel()));
if (tile.getStatusLevel() > 0)
dropBlockAsItem(world, x, y, z, new ItemStack(ModItems.upgradeStatus, 1, tile.getStatusLevel()));

for (int i = 0; i < tile.getDrawerCount(); i++) {
while (tile.getItemCount(i) > 0) {
Expand Down

0 comments on commit 390ac1e

Please sign in to comment.