mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-12-22 20:32:22 +01:00
parent
0cb8d2dc33
commit
d3397563ec
@ -458,7 +458,7 @@ function DigtronLayout.deserialize(layout_string)
|
|||||||
if not layout_string or layout_string == "" then
|
if not layout_string or layout_string == "" then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
deserialized_layout = minetest.deserialize(layout_string)
|
local deserialized_layout = minetest.deserialize(layout_string)
|
||||||
|
|
||||||
self.all = deserialized_layout.all
|
self.all = deserialized_layout.all
|
||||||
self.controller = deserialized_layout.controller
|
self.controller = deserialized_layout.controller
|
||||||
|
@ -182,6 +182,7 @@ local loaded_on_recieve = function(pos, fields, sender, protected)
|
|||||||
meta:set_string("title", minetest.formspec_escape(fields.title))
|
meta:set_string("title", minetest.formspec_escape(fields.title))
|
||||||
end
|
end
|
||||||
local title = meta:get_string("title")
|
local title = meta:get_string("title")
|
||||||
|
local infotext
|
||||||
|
|
||||||
if protected then
|
if protected then
|
||||||
infotext = title .. "\n" .. S("Owned by @1", sender:get_player_name())
|
infotext = title .. "\n" .. S("Owned by @1", sender:get_player_name())
|
||||||
|
Loading…
Reference in New Issue
Block a user