mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-27 09:42:37 +01:00
Allow /npc hologram set to add not set
This commit is contained in:
parent
45907da2d7
commit
73250c300a
@ -167,7 +167,11 @@ public class HologramTrait extends Trait {
|
||||
}
|
||||
|
||||
public void setLine(int idx, String text) {
|
||||
lines.set(idx, text);
|
||||
if (idx == lines.size()) {
|
||||
lines.add(idx, text);
|
||||
} else {
|
||||
lines.set(idx, text);
|
||||
}
|
||||
}
|
||||
|
||||
public void setLineHeight(double height) {
|
||||
|
Loading…
Reference in New Issue
Block a user