Allow /npc hologram set to add not set

This commit is contained in:
fullwall 2020-08-11 22:57:32 +08:00
parent 45907da2d7
commit 73250c300a
1 changed files with 5 additions and 1 deletions

View File

@ -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) {