From 79335d6250e467e75bd8761e1bc4cc526c266f93 Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Fri, 15 Aug 2014 11:50:23 +0200 Subject: [PATCH] When creating a cast, move it to input slot for direct use. --- .../java/tconstruct/smeltery/logic/CastingTableLogic.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/tconstruct/smeltery/logic/CastingTableLogic.java b/src/main/java/tconstruct/smeltery/logic/CastingTableLogic.java index 1bdbac81..c2970940 100644 --- a/src/main/java/tconstruct/smeltery/logic/CastingTableLogic.java +++ b/src/main/java/tconstruct/smeltery/logic/CastingTableLogic.java @@ -346,6 +346,14 @@ public class CastingTableLogic extends InventoryLogic implements IFluidTank, IFl inventory[1] = event.output; if (event.consumeCast) inventory[0] = null; + + // if we just created a cast, move it to the first slot so we can use it directly afterwards + if(event.output != null && event.output.getItem() instanceof IPattern) + { + inventory[1] = inventory[0]; + inventory[0] = event.output; + } + liquid = null; worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); }