Skip to content

Commit

Permalink
anvil event patches
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed May 23, 2017
1 parent e6d46a8 commit ad4c477
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -34,7 +34,6 @@
// @Context
// <context.inventory> returns the dInventory of the anvil inventory.
// <context.item> returns the dItem to be crafted.
// <context.recipe> returns a dList of dItems in the recipe.
// <context.repair_cost> returns an Element(Number) of the repair cost.
// <context.new_name> returns an Element of the new name.
//
Expand Down Expand Up @@ -95,14 +94,16 @@ public void destroy() {
public boolean applyDetermination(ScriptContainer container, String determination) {
if (aH.matchesInteger(determination)) {
repairCost = new Element(determination);
return true;
}
if (dItem.matches(determination)) {
else if (dItem.matches(determination)) {
result = dItem.valueOf(determination);
resultChanged = true;
return true;
}

return super.applyDetermination(container, determination);
else {
return super.applyDetermination(container, determination);
}
}

@Override
Expand Down

0 comments on commit ad4c477

Please sign in to comment.