mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 12:32:23 +00:00
Add camouflage system, add greenhouse door and clean up
This commit is contained in:
1 parent
7238886d00
commit
bde92c4afc
158 files changed
+1476
-491
No files matched your search
@@ -32,7 +32,7 @@ public class ResupplyHandler implements IResupplyHandler {
|
||||
private static List<ItemStack> backpacks(InventoryPlayer playerInventory) {
|
||||
List<ItemStack> backpacks = new ArrayList<>();
|
||||
for (ItemStack itemStack : playerInventory.mainInventory) {
|
||||
if (itemStack != null && itemStack.stackSize > 0 && (itemStack.getItem() instanceof ItemBackpack)) {
|
||||
if (itemStack != null && itemStack.stackSize > 0 && itemStack.getItem() instanceof ItemBackpack) {
|
||||
backpacks.add(itemStack);
|
||||
}
|
||||
}
|
||||
@@ -61,7 +61,7 @@ public class ResupplyHandler implements IResupplyHandler {
|
||||
}
|
||||
|
||||
// Load their inventory
|
||||
ItemBackpack backpackItem = ((ItemBackpack) backpack.getItem());
|
||||
ItemBackpack backpackItem = (ItemBackpack) backpack.getItem();
|
||||
ItemInventory backpackInventory = new ItemInventoryBackpack(player, backpackItem.getBackpackSize(), backpack);
|
||||
|
||||
Event event = new BackpackResupplyEvent(player, backpackItem.getDefinition(), backpackInventory);
|
||||
|
||||
Reference in new issue
Block a user