mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Fixed bug where disabling hardcore mode for specific skills didn't work
Fixes #1661
This commit is contained in:
parent
48821a710f
commit
07cafd4866
@ -22,6 +22,7 @@ Version 1.4.08-dev
|
|||||||
= Fixed bug where the Unbreaking enchantment was ignored when using "Super Breaker" or "Giga Drill Breaker"
|
= Fixed bug where the Unbreaking enchantment was ignored when using "Super Breaker" or "Giga Drill Breaker"
|
||||||
= Fixed bug which prevented players from gaining Acrobatics XP when the setting 'Prevent_XP_After_Teleport' was set to false
|
= Fixed bug which prevented players from gaining Acrobatics XP when the setting 'Prevent_XP_After_Teleport' was set to false
|
||||||
= Fixed bug where cooldown donor perks were reducing more than expected
|
= Fixed bug where cooldown donor perks were reducing more than expected
|
||||||
|
= Fixed bug where disabling hardcore mode for specific skills didn't work
|
||||||
! Updated localization files
|
! Updated localization files
|
||||||
! Changed AxesCritical to CriticalHit in config file
|
! Changed AxesCritical to CriticalHit in config file
|
||||||
! Changed several secondary ability permissions(deprecated versions still exist)
|
! Changed several secondary ability permissions(deprecated versions still exist)
|
||||||
|
@ -22,6 +22,10 @@ public final class HardcoreManager {
|
|||||||
int totalLevelsLost = 0;
|
int totalLevelsLost = 0;
|
||||||
|
|
||||||
for (SkillType skillType : SkillType.NON_CHILD_SKILLS) {
|
for (SkillType skillType : SkillType.NON_CHILD_SKILLS) {
|
||||||
|
if (!skillType.getHardcoreStatLossEnabled()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
int playerSkillLevel = playerProfile.getSkillLevel(skillType);
|
int playerSkillLevel = playerProfile.getSkillLevel(skillType);
|
||||||
int playerSkillXpLevel = playerProfile.getSkillXpLevel(skillType);
|
int playerSkillXpLevel = playerProfile.getSkillXpLevel(skillType);
|
||||||
|
|
||||||
@ -54,6 +58,10 @@ public final class HardcoreManager {
|
|||||||
int totalLevelsStolen = 0;
|
int totalLevelsStolen = 0;
|
||||||
|
|
||||||
for (SkillType skillType : SkillType.NON_CHILD_SKILLS) {
|
for (SkillType skillType : SkillType.NON_CHILD_SKILLS) {
|
||||||
|
if (!skillType.getHardcoreVampirismEnabled()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
int killerSkillLevel = killerProfile.getSkillLevel(skillType);
|
int killerSkillLevel = killerProfile.getSkillLevel(skillType);
|
||||||
int victimSkillLevel = victimProfile.getSkillLevel(skillType);
|
int victimSkillLevel = victimProfile.getSkillLevel(skillType);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user