From d3397563ec29b193aa2bfd720da1a4aba34304d3 Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Tue, 28 Aug 2018 20:25:13 +0200 Subject: Fix undeclared global variable warnings Closes #26 (trivial) --- nodes/node_crate.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'nodes/node_crate.lua') 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()) -- cgit v1.2.3