mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-16 20:35:09 +00:00
Don't update sign entity if node is gone
This commit is contained in:
parent
3bee57e97d
commit
9d53398045
1 changed files with 3 additions and 0 deletions
|
@ -148,6 +148,9 @@ end
|
||||||
|
|
||||||
local update_sign = function(pos, fields, sender)
|
local update_sign = function(pos, fields, sender)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
if not meta then
|
||||||
|
return
|
||||||
|
end
|
||||||
local owner = meta:get_string("owner")
|
local owner = meta:get_string("owner")
|
||||||
local text = meta:get_string("text")
|
local text = meta:get_string("text")
|
||||||
if fields and sender:get_player_name() == owner or text == "" and fields then
|
if fields and sender:get_player_name() == owner or text == "" and fields then
|
||||||
|
|
Loading…
Reference in a new issue