mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 04:32:26 +00:00
When creating a cast, move it to input slot for direct use.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user