1
0
mirror of https://github.com/mt-mods/signs_lib.git synced 2024-12-25 00:30:18 +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
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