mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
parent
5d246d2701
commit
0188629fe2
@ -34,6 +34,8 @@ public final class HardcoreManager {
|
|||||||
int playerSkillXpLevel = playerProfile.getSkillXpLevel(skillType);
|
int playerSkillXpLevel = playerProfile.getSkillXpLevel(skillType);
|
||||||
|
|
||||||
if (playerSkillLevel <= 0 || playerSkillLevel <= levelThreshold) {
|
if (playerSkillLevel <= 0 || playerSkillLevel <= levelThreshold) {
|
||||||
|
levelChanged.put(skillType.toString(), 0);
|
||||||
|
experienceChanged.put(skillType.toString(), 0F);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,6 +77,8 @@ public final class HardcoreManager {
|
|||||||
int victimSkillLevel = victimProfile.getSkillLevel(skillType);
|
int victimSkillLevel = victimProfile.getSkillLevel(skillType);
|
||||||
|
|
||||||
if (victimSkillLevel <= 0 || victimSkillLevel < killerSkillLevel / 2 || victimSkillLevel <= levelThreshold) {
|
if (victimSkillLevel <= 0 || victimSkillLevel < killerSkillLevel / 2 || victimSkillLevel <= levelThreshold) {
|
||||||
|
levelChanged.put(skillType.toString(), 0);
|
||||||
|
experienceChanged.put(skillType.toString(), 0F);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user