mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
correct item salvage level check
This commit is contained in:
parent
861552bcd8
commit
2974ed0993
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user