Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error when an entity un-targets another entity #93

Merged
merged 1 commit into from
Nov 18, 2024
Merged

Conversation

NonSwag
Copy link
Member

@NonSwag NonSwag commented Nov 18, 2024

Add a check to return early if the target is null in the onEntityTarget method, ensuring the application does not throw a NullPointerException during such events. This fix addresses a potential bug when an entity untargets another entity in the game.

Add a check to return early if the target is null in the onEntityTarget method, ensuring the application does not throw a NullPointerException during such events. This fix addresses a potential bug when an entity untargets another entity in the game.
@NonSwag NonSwag added the bug Something isn't working label Nov 18, 2024
@NonSwag NonSwag self-assigned this Nov 18, 2024
@NonSwag NonSwag merged commit c884054 into master Nov 18, 2024
1 check passed
@NonSwag NonSwag deleted the fix-un-target branch November 18, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant