fix: fixed NPE if set navigator target before player spawn
This commit is contained in:
parent
e40fc357bc
commit
602712f446
@ -83,7 +83,7 @@ public class NavigatorContext extends PlayerContext implements Navigator {
|
|||||||
private void update() {
|
private void update() {
|
||||||
if (!enabled || (prevTargetEmpty && target == null)) return;
|
if (!enabled || (prevTargetEmpty && target == null)) return;
|
||||||
|
|
||||||
bossBar.name(render());
|
if (bossBar != null) bossBar.name(render());
|
||||||
}
|
}
|
||||||
|
|
||||||
private Component render() {
|
private Component render() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user