Minor ItemBackpack code cleanup

This commit is contained in:
mezz committed 2014-09-19 00:34:50 -07:00
1 parent 5616081f17
commit 12fd949fa5
1 file changed
+2 -1
@@ -157,7 +157,8 @@ public class ItemBackpack extends ItemInventoried {
// Create our own backpack inventory
ItemInventory backpackInventory = new ItemInventory(ItemBackpack.class, getBackpackSize(), stack);
if (stack.getItemDamage() == 2)
BackpackMode mode = getMode(stack);
if (mode == BackpackMode.RECEIVE)
tryChestReceive(player, backpackInventory, inventory);
else
tryChestTransfer(backpackInventory, inventory);