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