forked from mtcontrib/signs_lib
make sure digger is valid before checking for creative
(else assume survival)
This commit is contained in:
parent
c08eb3452f
commit
1327cb2112
2
api.lua
2
api.lua
@ -950,7 +950,7 @@ local use_glow = function(pos, node, puncher, pointed_thing)
|
||||
end
|
||||
|
||||
local glow_drops = function(pos, oldnode, oldmetadata, digger)
|
||||
if minetest.is_creative_enabled(digger:get_player_name()) then
|
||||
if digger and minetest.is_creative_enabled(digger:get_player_name()) then
|
||||
return
|
||||
end
|
||||
local glow = oldmetadata and oldmetadata.fields and oldmetadata.fields.glow
|
||||
|
Loading…
Reference in New Issue
Block a user