From 05032c90fd1cc6d4887249359928288767c40176 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Fri, 8 May 2015 00:27:24 -0400 Subject: [PATCH] Drop void upgrade when breaking drawers that have one --- .../jaquadro/minecraft/storagedrawers/block/BlockDrawers.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/jaquadro/minecraft/storagedrawers/block/BlockDrawers.java b/src/com/jaquadro/minecraft/storagedrawers/block/BlockDrawers.java index 89612451b..74a20b7f5 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/block/BlockDrawers.java +++ b/src/com/jaquadro/minecraft/storagedrawers/block/BlockDrawers.java @@ -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))