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

crash when fake player dig slade #45

Open
nonfreegithub opened this issue Nov 11, 2023 · 0 comments
Open

crash when fake player dig slade #45

nonfreegithub opened this issue Nov 11, 2023 · 0 comments

Comments

@nonfreegithub
Copy link
Contributor

When a fake player, for example a node, dig slade, it return player ~= nil but it is not a current player, the server_diggable_only function tries to check the privs of the node, then this crashes

We can use the built-in check player:is_player() so the node privs are not checked

This crash occurs, for example, in the technic mod when the corium eats the slade

And can occur in any other mod that uses fake players

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

No branches or pull requests

1 participant