mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
correct item salvage level check
This commit is contained in:
parent
861552bcd8
commit
2974ed0993
@ -1,4 +1,5 @@
|
|||||||
Version 2.1.103
|
Version 2.1.103
|
||||||
|
Fixed an issue with salvage checking the incorrect level requirement
|
||||||
|
|
||||||
Version 2.1.102
|
Version 2.1.102
|
||||||
Scoreboards will now be removed from players who teleport to a blacklisted world
|
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();*/
|
int minimumSalvageableLevel = salvageable.getMinimumLevel();*/
|
||||||
|
|
||||||
// Level check
|
// 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()));
|
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