correct item salvage level check

This commit is contained in:
Shane Freeder 2019-08-22 00:37:28 +01:00
parent 861552bcd8
commit 2974ed0993
No known key found for this signature in database
GPG Key ID: A3F61EA5A085289C
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
Version 2.1.103
Fixed an issue with salvage checking the incorrect level requirement
Version 2.1.102
Scoreboards will now be removed from players who teleport to a blacklisted world

View File

@ -86,7 +86,7 @@ public class SalvageManager extends SkillManager {
int minimumSalvageableLevel = salvageable.getMinimumLevel();*/
// Level check
if (!RankUtils.hasUnlockedSubskill(player, SubSkillType.SALVAGE_ARCANE_SALVAGE)) {
if (!RankUtils.hasUnlockedSubskill(player, SubSkillType.SALVAGE_SCRAP_COLLECTOR)) {
NotificationManager.sendPlayerInformation(player, NotificationType.REQUIREMENTS_NOT_MET, "Salvage.Skills.Adept.Level", String.valueOf(RankUtils.getUnlockLevel(SubSkillType.SALVAGE_ARCANE_SALVAGE)), StringUtils.getPrettyItemString(item.getType()));
return;
}