mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
Use minimum level of salvagable properly
This commit is contained in:
parent
11ca0d9ff1
commit
4f161812aa
@ -82,11 +82,11 @@ public class SalvageManager extends SkillManager {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*int skillLevel = getSkillLevel();
|
/*int skillLevel = getSkillLevel();*/
|
||||||
int minimumSalvageableLevel = salvageable.getMinimumLevel();*/
|
int minimumSalvageableLevel = salvageable.getMinimumLevel();
|
||||||
|
|
||||||
// Level check
|
// 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()));
|
NotificationManager.sendPlayerInformation(player, NotificationType.REQUIREMENTS_NOT_MET, "Salvage.Skills.Adept.Level", String.valueOf(RankUtils.getUnlockLevel(SubSkillType.SALVAGE_ARCANE_SALVAGE)), StringUtils.getPrettyItemString(item.getType()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user