respawn the entity if display content changes

This commit is contained in:
2023-07-22 14:05:07 +02:00
parent df087c7604
commit 7675ef3fc3
3 changed files with 31 additions and 14 deletions
@@ -81,7 +81,9 @@ public class Nameplate {
}
public void setContent(@NotNull DisplayContent content) {
if (this.content == content) return;
this.content = content;
Bukkit.getScheduler().runTask(NotJustNameplates.getInstance(), this::remove);
}
public void setAlignment(@NotNull TextDisplay.TextAlignment alignment) {