Skip to content

Commit

Permalink
When creating a cast, move it to input slot for direct use.
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Aug 15, 2014
1 parent f9a4fd2 commit 79335d6
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -346,6 +346,14 @@ public void castLiquid ()
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);
}
Expand Down

0 comments on commit 79335d6

Please sign in to comment.