Skip to content

Commit

Permalink
Baker - Enhancements - User controll over Baker ldtteam#2592
Browse files Browse the repository at this point in the history
Changes to formatting
  • Loading branch information
bob0bob committed Jul 5, 2018
1 parent d8b27b7 commit d77f957
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -469,13 +469,15 @@ public void putInFurnace(final BlockPos currentFurnace, final BakingProduct baki
public boolean isRecipeAllowed(final int pos)
{
if (pos >= recipesAllowed.length)
{
return false;
}

return recipesAllowed[pos];
}


public void setRecipeAllowed(int pos, boolean value)
public void setRecipeAllowed(final int pos, final boolean value)
{
if (pos < recipesAllowed.length)
{
Expand Down Expand Up @@ -534,7 +536,9 @@ public void setRecipeAllowed(final int pos, boolean value,final BlockPos block)
{
MineColonies.getNetwork().sendToServer(new AssignBakerRecipeMessage(this, pos, value, block));
if (pos < recipesAllowed.length)
{
recipesAllowed[pos] = value;
}
}


Expand Down

0 comments on commit d77f957

Please sign in to comment.