From ce4312a57835950c75cc482850d69d052103854e Mon Sep 17 00:00:00 2001 From: Gig Date: Sun, 17 May 2015 19:45:12 +0100 Subject: [PATCH] Upgrade slots for more machines --- .../java/techreborn/client/container/ContainerLathe.java | 5 +++++ .../client/container/ContainerPlateCuttingMachine.java | 5 +++++ src/main/java/techreborn/init/ModRecipes.java | 1 - src/main/java/techreborn/tiles/TileLathe.java | 2 +- src/main/java/techreborn/tiles/TilePlateCuttingMachine.java | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/main/java/techreborn/client/container/ContainerLathe.java b/src/main/java/techreborn/client/container/ContainerLathe.java index 7a7376c15..9ac2ece57 100644 --- a/src/main/java/techreborn/client/container/ContainerLathe.java +++ b/src/main/java/techreborn/client/container/ContainerLathe.java @@ -33,6 +33,11 @@ public class ContainerLathe extends TechRebornContainer { this.addSlotToContainer(new SlotOutput(tilelathe.inventory, 1, 116, 35)); // power this.addSlotToContainer(new Slot(tilelathe.inventory, 2, 56, 53)); + // upgrades + this.addSlotToContainer(new Slot(tilelathe.inventory, 3, 152, 8)); + this.addSlotToContainer(new Slot(tilelathe.inventory, 4, 152, 26)); + this.addSlotToContainer(new Slot(tilelathe.inventory, 5, 152, 44)); + this.addSlotToContainer(new Slot(tilelathe.inventory, 6, 152, 62)); int i; diff --git a/src/main/java/techreborn/client/container/ContainerPlateCuttingMachine.java b/src/main/java/techreborn/client/container/ContainerPlateCuttingMachine.java index 89604c57f..52630dfdf 100644 --- a/src/main/java/techreborn/client/container/ContainerPlateCuttingMachine.java +++ b/src/main/java/techreborn/client/container/ContainerPlateCuttingMachine.java @@ -34,6 +34,11 @@ public class ContainerPlateCuttingMachine extends TechRebornContainer { this.addSlotToContainer(new SlotOutput(tileplatecuttingmachine.inventory, 1, 116, 35)); // power this.addSlotToContainer(new Slot(tileplatecuttingmachine.inventory, 2, 56, 53)); + // upgrades + this.addSlotToContainer(new Slot(tileplatecuttingmachine.inventory, 3, 152, 8)); + this.addSlotToContainer(new Slot(tileplatecuttingmachine.inventory, 4, 152, 26)); + this.addSlotToContainer(new Slot(tileplatecuttingmachine.inventory, 5, 152, 44)); + this.addSlotToContainer(new Slot(tileplatecuttingmachine.inventory, 6, 152, 62)); int i; diff --git a/src/main/java/techreborn/init/ModRecipes.java b/src/main/java/techreborn/init/ModRecipes.java index e05174c06..3b45626aa 100644 --- a/src/main/java/techreborn/init/ModRecipes.java +++ b/src/main/java/techreborn/init/ModRecipes.java @@ -233,7 +233,6 @@ public class ModRecipes { // :( I cant do this // List anyhammer = Arrays.asList(hammerIron, hammerDiamond); - GameRegistry.addShapelessRecipe(new ItemStack(ModItems.plate, 1, 13), hammerIron, new ItemStack(Items.iron_ingot)); } diff --git a/src/main/java/techreborn/tiles/TileLathe.java b/src/main/java/techreborn/tiles/TileLathe.java index 8cbdd747e..0c6969822 100644 --- a/src/main/java/techreborn/tiles/TileLathe.java +++ b/src/main/java/techreborn/tiles/TileLathe.java @@ -17,7 +17,7 @@ public class TileLathe extends TileMachineBase implements IWrenchable, IEnergyTi public int tickTime; public BasicSink energy; - public Inventory inventory = new Inventory(3, "TileLathe", 64); + public Inventory inventory = new Inventory(7, "TileLathe", 64); public RecipeCrafter crafter; public TileLathe() diff --git a/src/main/java/techreborn/tiles/TilePlateCuttingMachine.java b/src/main/java/techreborn/tiles/TilePlateCuttingMachine.java index f9a2d4e36..c8d67b701 100644 --- a/src/main/java/techreborn/tiles/TilePlateCuttingMachine.java +++ b/src/main/java/techreborn/tiles/TilePlateCuttingMachine.java @@ -17,7 +17,7 @@ public class TilePlateCuttingMachine extends TileMachineBase implements IWrencha public int tickTime; public BasicSink energy; - public Inventory inventory = new Inventory(3, "TilePlateCuttingMachine", 64); + public Inventory inventory = new Inventory(7, "TilePlateCuttingMachine", 64); public RecipeCrafter crafter; public TilePlateCuttingMachine()