Merge pull request #865 from bonii-xx/new_pr

When creating a cast, move it to input slot for direct use.
This commit is contained in:
mDiyo committed 2014-08-16 02:21:20 -08:00
commit 787dc7393f
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);
}