use the proper method for reloading holograms when adding or inserting new lines
This commit is contained in:
parent
354a9133c3
commit
1239126105
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ public class HologramImpl extends Viewable implements Hologram {
|
|||
public void addLineComponent(Component line) {
|
||||
HologramLine newLine = new HologramLine(packetFactory, null, line);
|
||||
lines.add(newLine);
|
||||
relocateLines();
|
||||
relocateLines(newLine);
|
||||
for (Player viewer : getViewers()) newLine.show(viewer.getPlayer());
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ public class HologramImpl extends Viewable implements Hologram {
|
|||
public void insertLineComponent(int index, Component line) {
|
||||
HologramLine newLine = new HologramLine(packetFactory, null, line);
|
||||
lines.add(index, newLine);
|
||||
relocateLines();
|
||||
relocateLines(newLine);
|
||||
for (Player viewer : getViewers()) newLine.show(viewer.getPlayer());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue