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 edge case scenario where NPCs can be treated like Players in Combat. #6909

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

LlmDl
Copy link
Member

@LlmDl LlmDl commented Aug 8, 2023

Description:

Sentinel could cause Towny to throw events that assume a player is involved, but the lack of a backing Resident can cause issues for plugins using our events.

This change should result in non-player-involved damage events being thrown instead.


New Nodes/Commands/ConfigOptions:


Relevant Towny Issue ticket:

https://mclo.gs/brb2gHd


  • I have tested this pull request for defects on a server.

By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the Towny License for perpetuity.

Sentinel could cause Towny to throw events that assume a player is
involved, but the lack of a backing Resident can cause issues for
plugins using our events.

This change should result in non-player-involved damage events being
thrown instead.
@LlmDl LlmDl added this to the 0.99.6.0 milestone Aug 8, 2023
@LlmDl LlmDl merged commit a499b0b into master Aug 8, 2023
3 checks passed
@LlmDl LlmDl deleted the fix/npc_combat branch August 8, 2023 16:17
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.

2 participants