mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-04 18:00:00 +01:00
Update existing hologram npcs in setLine
This commit is contained in:
parent
6d25774d42
commit
78824a341e
@ -255,6 +255,10 @@ public class HologramTrait extends Trait {
|
||||
lines.add(text);
|
||||
} else {
|
||||
lines.set(idx, text);
|
||||
if (idx < lineHolograms.size()) {
|
||||
lineHolograms.get(idx).setName(Placeholders.replace(text, null, npc));
|
||||
return;
|
||||
}
|
||||
}
|
||||
onDespawn();
|
||||
onSpawn();
|
||||
|
Loading…
Reference in New Issue
Block a user