Skip to content

crash when fake player dig slade #45

@nonfreegithub

Description

@nonfreegithub

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions