When creating a cast, move it to input slot for direct use.

This commit is contained in:
Bernhard Bonigl committed 2014-08-15 11:53:42 +02:00
1 parent f9a4fd2377
commit 79335d6250
1 file changed
+8
@@ -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);
}