fix: fixed navigator
This commit is contained in:
parent
4668616e48
commit
b1a39ee646
@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user