Skip to content

Commit

Permalink
when combining enchantments and there are incompatible enchantments t…
Browse files Browse the repository at this point in the history
…he leftover tool now gets damaged
  • Loading branch information
vdvman1 committed Aug 22, 2013
1 parent 9f5e8f9 commit 0202d64
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public void updateRepairOutput() {
EnchantmentHelper.setEnchantments(combined._3(), workStack);
this.resultInputStack = stack2.copy();
EnchantmentHelper.setEnchantments(combined._4(), this.resultInputStack);
this.resultInputStack.setItemDamage(this.resultInputStack.getMaxDamage() - combined._4().size());
if(this.resultInputStack.itemID == Item.enchantedBook.itemID && combined._4().isEmpty()) {
this.resultInputStack = new ItemStack(Item.book);
}
Expand Down

0 comments on commit 0202d64

Please sign in to comment.