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

@ -1,5 +1,6 @@
Version 2.1.71
Salvage will now always ask for confirmation before breaking your items (instead of only asking for enchanted items)
Repair will now always ask for confirmation before repairing items (instead of only asking for enchanted items)
Version 2.1.70
Added new DatabaseAPI to the API package, has features relating to database operations

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();
}