Skip to content
Browse files

Verify object is player before checking privs (#2448)

This prevents a crash when a 'nil' digger is passed by the engine to
  • Loading branch information
coil0 authored and SmallJoker committed Aug 19, 2019
1 parent fac8f39 commit 3a3f71aa50c7ef5d894d1f1e0760f164654bbeb7
Showing with 1 addition and 1 deletion.
  1. +1 −1 mods/default/functions.lua
@@ -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

0 comments on commit 3a3f71a

Please sign in to comment.
You can’t perform that action at this time.