Add delay to hologram linking

This commit is contained in:
fullwall 2023-11-01 22:29:47 +08:00
parent 1a8246bb88
commit 24e7df6a18

View File

@ -442,7 +442,7 @@ public class EventListen implements Listener {
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);
}
}
}