diff options
author | Thomas Rudin <thomas@rudin.li> | 2018-08-28 20:25:13 +0200 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-08-28 20:25:13 +0200 |
commit | d3397563ec29b193aa2bfd720da1a4aba34304d3 (patch) | |
tree | eac18739a4bcc22b014f4bd97f3428a7061b7986 /nodes/node_crate.lua | |
parent | 0cb8d2dc3333e6e885c0470c3dcfe3d349dadac6 (diff) |
Fix undeclared global variable warnings
Closes #26 (trivial)
Diffstat (limited to 'nodes/node_crate.lua')
-rw-r--r-- | nodes/node_crate.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nodes/node_crate.lua b/nodes/node_crate.lua index 4073993..ae3bffa 100644 --- a/nodes/node_crate.lua +++ b/nodes/node_crate.lua @@ -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()) |