Potential packet fix

This commit is contained in:
Jitse Boonstra
2020-08-08 18:39:42 +02:00
parent 0a66b9dcef
commit 4eb7c8238d
4 changed files with 22 additions and 12 deletions
@@ -36,17 +36,17 @@ public class NPC_v1_16_R1 extends NPCBase {
public NPC_v1_16_R1(NPCLib instance, List<String> lines) {
super(instance, lines);
}
@Override
public Hologram getPlayerHologram(Player player) {
Hologram holo = super.getPlayerHologram(player);
if (holo == null){
if (holo == null) {
holo = new Hologram(MinecraftVersion.V1_16_R1, location.clone().add(0, 0.5, 0), getPlayerLines(player));
}
super.textDisplayHolograms.put(player.getUniqueId(), holo);
return holo;
}
@Override
public void createPackets() {
Bukkit.getOnlinePlayers().forEach(this::createPackets);