Fix backpack pickup handler

This commit is contained in:
mezz committed 2017-05-10 15:27:01 -07:00
1 parent 610ddfed12
commit f569a04797
1 file changed
+2 -2
@@ -38,11 +38,11 @@ public class PickupHandlerStorage implements IPickupHandler {
topOffPlayerInventory(player, itemstack);
for (ItemStack pack : player.inventory.mainInventory) {
if (pack.isEmpty() || itemstack.isEmpty()) {
if (itemstack.isEmpty()) {
break;
}
if (!(pack.getItem() instanceof ItemBackpack)) {
if (pack.isEmpty() || !(pack.getItem() instanceof ItemBackpack)) {
continue;
}