Missed 1.21 change

This commit is contained in:
fullwall 2024-09-24 22:22:12 +08:00
parent 8c4cf4a4b4
commit 0f701a3c40

View File

@ -38,7 +38,7 @@ public class CitizensEntityTracker extends ChunkMap.TrackedEntity {
boolean res = super.add(conn);
if (res) {
Bukkit.getPluginManager().callEvent(new NPCLinkToPlayerEvent(((NPCHolder) tracker).getNPC(),
conn.getPlayer().getBukkitEntity()));
conn.getPlayer().getBukkitEntity(), !Bukkit.isPrimaryThread()));
}
return res;
}