mirror of
https://github.com/mt-mods/signs_lib.git
synced 2024-12-25 08:40:17 +01:00
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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user