mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Fix issues in the ExperienceBarWrapper
This commit is contained in:
parent
9dfbb14c39
commit
4e7e2daf3c
@ -1,6 +1,5 @@
|
|||||||
package com.gmail.nossr50.skills.axes;
|
package com.gmail.nossr50.skills.axes;
|
||||||
|
|
||||||
import com.gmail.nossr50.config.AdvancedConfig;
|
|
||||||
import com.gmail.nossr50.datatypes.interactions.NotificationType;
|
import com.gmail.nossr50.datatypes.interactions.NotificationType;
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||||
import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
|
import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
|
||||||
|
@ -21,21 +21,14 @@ public class ExperienceBarWrapper {
|
|||||||
|
|
||||||
protected final McMMOPlayer mcMMOPlayer;
|
protected final McMMOPlayer mcMMOPlayer;
|
||||||
private final PrimarySkillType primarySkillType; //Primary Skill
|
private final PrimarySkillType primarySkillType; //Primary Skill
|
||||||
<<<<<<< HEAD
|
|
||||||
private final Server server;
|
|
||||||
=======
|
|
||||||
private BossBar bossBar;
|
private BossBar bossBar;
|
||||||
protected final McMMOPlayer mcMMOPlayer;
|
|
||||||
private int lastLevelUpdated;
|
private int lastLevelUpdated;
|
||||||
|
|
||||||
>>>>>>> 9111590dc2a9bb6a1c12fefc13167a1d88470cd4
|
|
||||||
/*
|
/*
|
||||||
* This is stored to help optimize updating the title
|
* This is stored to help optimize updating the title
|
||||||
*/
|
*/
|
||||||
protected String niceSkillName;
|
protected String niceSkillName;
|
||||||
protected String title;
|
protected String title;
|
||||||
private BossBar bossBar;
|
|
||||||
private int lastLevelUpdated;
|
|
||||||
|
|
||||||
public ExperienceBarWrapper(PrimarySkillType primarySkillType, McMMOPlayer mcMMOPlayer) {
|
public ExperienceBarWrapper(PrimarySkillType primarySkillType, McMMOPlayer mcMMOPlayer) {
|
||||||
this.mcMMOPlayer = mcMMOPlayer;
|
this.mcMMOPlayer = mcMMOPlayer;
|
||||||
@ -129,10 +122,10 @@ public class ExperienceBarWrapper {
|
|||||||
bossBar.setProgress(v);
|
bossBar.setProgress(v);
|
||||||
|
|
||||||
//Check player level
|
//Check player level
|
||||||
if(ExperienceConfig.getInstance().isEarlyGameBoostEnabled() && PlayerLevelUtils.qualifiesForEarlyGameBoost(mcMMOPlayer, primarySkillType)) {
|
if(mcMMO.getConfigManager().getConfigLeveling().getEarlyGameBoost().isEnableEarlyGameBoost() && PlayerLevelUtils.qualifiesForEarlyGameBoost(mcMMOPlayer, primarySkillType)) {
|
||||||
setColor(BarColor.YELLOW);
|
setColor(BarColor.YELLOW);
|
||||||
} else {
|
} else {
|
||||||
setColor(ExperienceConfig.getInstance().getExperienceBarColor(primarySkillType));
|
setColor(mcMMO.getConfigManager().getConfigLeveling().getConfigExperienceBars().getXPBarColor(primarySkillType));
|
||||||
}
|
}
|
||||||
|
|
||||||
//Every time progress updates we need to check for a title update
|
//Every time progress updates we need to check for a title update
|
||||||
|
Loading…
Reference in New Issue
Block a user