mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Repair now always requires confirmation
This commit is contained in:
parent
77fbf7f51e
commit
549ef5734e
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user