1
0
mirror of https://github.com/mt-mods/signs_lib.git synced 2024-12-26 01:00:17 +01:00

make sure digger is valid before checking for creative

(else assume survival)
This commit is contained in:
Vanessa Dannenberg 2021-07-15 15:14:52 -04:00
parent c08eb3452f
commit 1327cb2112

View File

@ -950,7 +950,7 @@ local use_glow = function(pos, node, puncher, pointed_thing)
end end
local glow_drops = function(pos, oldnode, oldmetadata, digger) 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 return
end end
local glow = oldmetadata and oldmetadata.fields and oldmetadata.fields.glow local glow = oldmetadata and oldmetadata.fields and oldmetadata.fields.glow