Skip to content

perf: avoid unnecessary isNPC checks#2285

Open
RVSkeLe wants to merge 1 commit into
EngineHub:version/7.0.xfrom
RVSkeLe:perf/avoid-npc-checks
Open

perf: avoid unnecessary isNPC checks#2285
RVSkeLe wants to merge 1 commit into
EngineHub:version/7.0.xfrom
RVSkeLe:perf/avoid-npc-checks

Conversation

@RVSkeLe

@RVSkeLe RVSkeLe commented Jun 24, 2026

Copy link
Copy Markdown

Check whether an entity is a Player before calling isNPC() in player-only listeners, avoiding unnecessary NPC checks.

No behavioral changes intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant