Skip to content

Commit

Permalink
don't clear temporary holograms on reload
Browse files Browse the repository at this point in the history
  • Loading branch information
UsainSrht committed May 23, 2024
1 parent 666a181 commit 28f18f2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,10 @@ public void reloadHolograms() {
private void clearHolograms() {
final var online = List.copyOf(Bukkit.getOnlinePlayers());

final var holograms = Map.copyOf(this.holograms);
final var holograms = getHolograms();

this.holograms.clear();

for (final var hologram : holograms.values()) {
for (final var hologram : holograms) {
this.holograms.remove(hologram.getData().getName());
FancyHolograms.get().getScheduler().runTaskAsynchronously(() -> hologram.hideHologram(online));
}
}
Expand Down

0 comments on commit 28f18f2

Please sign in to comment.