mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-18 06:19:34 +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
|
||||
return
|
||||
end
|
||||
local owner = meta:get_string("owner")
|
||||
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)
|
||||
text = fields.text
|
||||
meta:set_string("owner", sender:get_player_name() or "")
|
||||
end
|
||||
if text == nil then
|
||||
text = ""
|
||||
|
|
Loading…
Reference in a new issue