mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-25 14:24:42 +00:00
Fix #881 Update codebase to Java 7
This commit is contained in:
1 parent
9ecab0fecd
commit
3f0dc9e74f
185 files changed
+427
-414
No files matched your search
@@ -31,7 +31,7 @@ import forestry.storage.items.ItemBackpack;
|
||||
public class ResupplyHandler implements IResupplyHandler {
|
||||
|
||||
private static List<ItemStack> backpacks(InventoryPlayer playerInventory) {
|
||||
List<ItemStack> backpacks = new ArrayList<ItemStack>();
|
||||
List<ItemStack> backpacks = new ArrayList<>();
|
||||
for (ItemStack itemStack : playerInventory.mainInventory) {
|
||||
if (itemStack != null && itemStack.stackSize > 0 && (itemStack.getItem() instanceof ItemBackpack)) {
|
||||
backpacks.add(itemStack);
|
||||
|
||||
Reference in new issue
Block a user