diff --git a/mods/default/functions.lua b/mods/default/functions.lua index 4c8d2f0..b12f03e 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -543,7 +543,8 @@ minetest.register_abm({ -- function default.can_interact_with_node(player, pos) - if player then + if player == nil then return false end + if player and player:is_player() then if minetest.check_player_privs(player, "protection_bypass") then return true end