mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-14 01:04:12 +00:00
Minor ItemBackpack code cleanup
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user