From 4f161812aa85c6fb138b4d6d69233dd103a13003 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Sun, 9 Feb 2020 22:47:17 +0000 Subject: [PATCH] Use minimum level of salvagable properly --- .../com/gmail/nossr50/skills/salvage/SalvageManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/salvage/SalvageManager.java b/src/main/java/com/gmail/nossr50/skills/salvage/SalvageManager.java index 02a20cec2..5d3cc1134 100644 --- a/src/main/java/com/gmail/nossr50/skills/salvage/SalvageManager.java +++ b/src/main/java/com/gmail/nossr50/skills/salvage/SalvageManager.java @@ -82,11 +82,11 @@ public class SalvageManager extends SkillManager { return; } - /*int skillLevel = getSkillLevel(); - int minimumSalvageableLevel = salvageable.getMinimumLevel();*/ + /*int skillLevel = getSkillLevel();*/ + int minimumSalvageableLevel = salvageable.getMinimumLevel(); // Level check - if (!RankUtils.hasUnlockedSubskill(player, SubSkillType.SALVAGE_SCRAP_COLLECTOR)) { + if (getSkillLevel() < minimumSalvageableLevel) { NotificationManager.sendPlayerInformation(player, NotificationType.REQUIREMENTS_NOT_MET, "Salvage.Skills.Adept.Level", String.valueOf(RankUtils.getUnlockLevel(SubSkillType.SALVAGE_ARCANE_SALVAGE)), StringUtils.getPrettyItemString(item.getType())); return; }