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

Throw an error when attempting to remove worldspawn in RemoveEntity/RemoveEdict #2104

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

CookieCat45
Copy link
Contributor

It's probably common knowledge at this point that calling RemoveEntity on the worldspawn will instantly crash the server. Since it can be agreed that there is no real reason to ever do this, I've changed it so that it throws an error instead. This way, if a plugin ends up accidentally removing the worldspawn, it will be much easier for the plugin author to fix the issue.

Copy link
Member

@peace-maker peace-maker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, an error message is indeed easier to debug than a crash.

@peace-maker peace-maker merged commit 8dcbe14 into alliedmodders:master Feb 20, 2024
4 checks passed
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