Fixed an issue with item upgrading

This commit is contained in:
Indyuce 2020-08-27 12:11:02 +02:00
parent 5ff232a48e
commit 38caf2e5c5

View File

@ -148,7 +148,7 @@ public class Consumable extends UseItem {
if (MMOItems.plugin.getLanguage().upgradeRequirementsCheck && !playerData.getRPG().canUse(result, false)) {
Message.UPGRADE_REQUIREMENT_SAFE_CHECK.format(ChatColor.RED).send(player);
player.playSound(player.getLocation(), Sound.ENTITY_VILLAGER_NO, 1, 2);
return true;
return false;
}
if (random.nextDouble() > consumableSharpening.getSuccess() * targetSharpening.getSuccess()) {