From 1239126105c20b47f9e85c585491690ee85e4f55 Mon Sep 17 00:00:00 2001 From: Pyrbu Date: Wed, 14 Jun 2023 23:15:18 +0200 Subject: [PATCH] use the proper method for reloading holograms when adding or inserting new lines --- .../main/java/lol/pyr/znpcsplus/hologram/HologramImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/hologram/HologramImpl.java b/plugin/src/main/java/lol/pyr/znpcsplus/hologram/HologramImpl.java index 0e768d4..7efebc8 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/hologram/HologramImpl.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/hologram/HologramImpl.java @@ -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()); }