Skip to content
Snippets Groups Projects
Commit 3a3f71aa authored by coil's avatar coil Committed by SmallJoker
Browse files

Verify object is player before checking privs (#2448)

This prevents a crash when a 'nil' digger is passed by the engine to
minetest.node_dig.
parent fac8f390
No related branches found
No related tags found
No related merge requests found
......@@ -573,7 +573,7 @@ minetest.register_abm({
--
function default.can_interact_with_node(player, pos)
if player then
if player and player:is_player() then
if minetest.check_player_privs(player, "protection_bypass") then
return true
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment