Skip to content

Commit

Permalink
Add delay to hologram linking
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Nov 1, 2023
1 parent 1a8246b commit 24e7df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/main/java/net/citizensnpcs/EventListen.java
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ public void onNPCLinkToPlayer(NPCLinkToPlayerEvent event) {
HologramTrait ht = crt.getRedirectNPC().getTraitNullable(HologramTrait.class);
if (ht != null) {
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(),
() -> ht.onHologramSeenByPlayer(npc, event.getPlayer()));
() -> ht.onHologramSeenByPlayer(npc, event.getPlayer()), 3);
}
}
}
Expand Down

0 comments on commit 24e7df6

Please sign in to comment.