mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
parent
0332c0f5e0
commit
103bf593f3
@ -170,7 +170,7 @@ public class ScoreboardManager {
|
|||||||
public static void cleanup(ScoreboardWrapper wrapper) {
|
public static void cleanup(ScoreboardWrapper wrapper) {
|
||||||
PLAYER_SCOREBOARDS.remove(wrapper.playerName);
|
PLAYER_SCOREBOARDS.remove(wrapper.playerName);
|
||||||
|
|
||||||
if (wrapper.revertTask != null) {
|
if (wrapper != null && wrapper.revertTask != null) {
|
||||||
wrapper.revertTask.cancel();
|
wrapper.revertTask.cancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -207,7 +207,7 @@ public class ScoreboardManager {
|
|||||||
// Selfboards
|
// Selfboards
|
||||||
ScoreboardWrapper wrapper = PLAYER_SCOREBOARDS.get(player.getName());
|
ScoreboardWrapper wrapper = PLAYER_SCOREBOARDS.get(player.getName());
|
||||||
|
|
||||||
if (wrapper.isSkillScoreboard() && wrapper.targetSkill == skill && wrapper.isBoardShown()) {
|
if (wrapper != null && wrapper.isSkillScoreboard() && wrapper.targetSkill == skill && wrapper.isBoardShown()) {
|
||||||
wrapper.doSidebarUpdateSoon();
|
wrapper.doSidebarUpdateSoon();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -217,7 +217,7 @@ public class ScoreboardManager {
|
|||||||
// Selfboards
|
// Selfboards
|
||||||
ScoreboardWrapper wrapper = PLAYER_SCOREBOARDS.get(player.getName());
|
ScoreboardWrapper wrapper = PLAYER_SCOREBOARDS.get(player.getName());
|
||||||
|
|
||||||
if ((wrapper.isCooldownScoreboard() || wrapper.isSkillScoreboard() && wrapper.targetSkill == skill) && wrapper.isBoardShown()) {
|
if (wrapper != null && (wrapper.isCooldownScoreboard() || wrapper.isSkillScoreboard() && wrapper.targetSkill == skill) && wrapper.isBoardShown()) {
|
||||||
wrapper.doSidebarUpdateSoon();
|
wrapper.doSidebarUpdateSoon();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user