remove holograms on destroy()

This commit is contained in:
Gatt 2020-07-17 00:06:42 +10:00
parent 92d3403b51
commit 0146b42b0f
1 changed files with 3 additions and 2 deletions

View File

@ -132,8 +132,9 @@ public abstract class NPCBase implements NPC, NPCPacketHandler {
if (autoHidden.contains(uuid)) {
continue;
}
hide(Bukkit.getPlayer(uuid), true);
Player plyr = Bukkit.getPlayer(uuid); // destroy the per player holograms
getPlayerHologram(plyr).hide(plyr);
hide(plyr, true);
}
}