Repair now always requires confirmation

This commit is contained in:
nossr50
2019-06-07 10:32:55 -07:00
parent 77fbf7f51e
commit 549ef5734e
2 changed files with 2 additions and 1 deletions

View File

@ -608,7 +608,7 @@ public class PlayerListener implements Listener {
event.setCancelled(true);
// Make sure the player knows what he's doing when trying to repair an enchanted item
if (!(heldItem.getEnchantments().size() > 0) || repairManager.checkConfirmation(true)) {
if (repairManager.checkConfirmation(true)) {
repairManager.handleRepair(heldItem);
player.updateInventory();
}