forked from VoxeLibre/VoxeLibre
Remove sign owner
This commit is contained in:
parent
b57ffe9d12
commit
90abfb0347
|
@ -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 New Issue