fix: fixed navigator

This commit is contained in:
Andrey Terentev 2025-05-02 13:58:31 +07:00
parent 01c70e8339
commit 43a94d4359

View File

@ -21,8 +21,8 @@ public class NavigatorContext extends PlayerContext implements Navigator {
private final static Component EMPTY = Component.text(" "); private final static Component EMPTY = Component.text(" ");
private BossBar bossBar; private BossBar bossBar;
private Point target; private volatile Point target;
private String text; private volatile String text;
private MinecraftFont.Text cachedText; private MinecraftFont.Text cachedText;
private boolean prevTargetEmpty = true; private boolean prevTargetEmpty = true;
private boolean enabled = true; private boolean enabled = true;
@ -71,6 +71,7 @@ public class NavigatorContext extends PlayerContext implements Navigator {
prevTargetEmpty = this.target == null; prevTargetEmpty = this.target == null;
this.target = target; this.target = target;
this.text = text; this.text = text;
cachedText = null;
update(); update();
} }