mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-18 14:29:32 +01:00
Remove sign owner
This commit is contained in:
parent
b57ffe9d12
commit
90abfb0347
1 changed files with 1 additions and 3 deletions
|
@ -151,12 +151,10 @@ local update_sign = function(pos, fields, sender)
|
||||||
if not meta then
|
if not meta then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
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.text)) then
|
if fields and (text == "" and fields.text) then
|
||||||
meta:set_string("text", fields.text)
|
meta:set_string("text", fields.text)
|
||||||
text = fields.text
|
text = fields.text
|
||||||
meta:set_string("owner", sender:get_player_name() or "")
|
|
||||||
end
|
end
|
||||||
if text == nil then
|
if text == nil then
|
||||||
text = ""
|
text = ""
|
||||||
|
|
Loading…
Reference in a new issue