1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-07-03 22:24:43 +02:00

Salvage always asks for confirmation before breaking an item

This commit is contained in:
nossr50
2019-06-07 10:26:49 -07:00
parent e37820d25e
commit 77fbf7f51e
3 changed files with 5 additions and 2 deletions
Changelog.txtpom.xml
src/main/java/com/gmail/nossr50/listeners

@ -619,7 +619,7 @@ public class PlayerListener implements Listener {
event.setCancelled(true);
// Make sure the player knows what he's doing when trying to salvage an enchanted item
if (!(heldItem.getEnchantments().size() > 0) || salvageManager.checkConfirmation(true)) {
if (salvageManager.checkConfirmation(true)) {
SkillUtils.handleAbilitySpeedDecrease(player);
salvageManager.handleSalvage(block.getLocation(), heldItem);
player.updateInventory();