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) --- class_layout.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'class_layout.lua') diff --git a/class_layout.lua b/class_layout.lua index 14c116b..541fd35 100644 --- a/class_layout.lua +++ b/class_layout.lua @@ -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 -- cgit v1.2.3