Add camouflage system, add greenhouse door and clean up

This commit is contained in:
Nedelosk committed 2016-03-13 21:00:45 +01:00
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);