mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Fix backpack pickup handler
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user