Fix undeclared global variable warnings

Closes #26 (trivial)
This commit is contained in:
Thomas Rudin 2018-08-28 20:25:13 +02:00 committed by SmallJoker
parent 0cb8d2dc33
commit d3397563ec
2 changed files with 2 additions and 1 deletions

@ -458,7 +458,7 @@ function DigtronLayout.deserialize(layout_string)
if not layout_string or layout_string == "" then
return nil
end
deserialized_layout = minetest.deserialize(layout_string)
local deserialized_layout = minetest.deserialize(layout_string)
self.all = deserialized_layout.all
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))
end
local title = meta:get_string("title")
local infotext
if protected then
infotext = title .. "\n" .. S("Owned by @1", sender:get_player_name())