From af2e3a7589fe826690ee8123da3c9cfb5489e1ba Mon Sep 17 00:00:00 2001 From: Alexsandro Percy <alexsandro.percy@gmail.com> Date: Mon, 18 Apr 2022 11:03:02 -0300 Subject: [PATCH] variable to local scope --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 2b12063..e5a829e 100644 --- a/init.lua +++ b/init.lua @@ -8,8 +8,8 @@ local talk_form = "formspec_version[5]".. "size[1.5,1]".. "button[0.125,0.125;1.25,0.75;play;Talk]" -modname = minetest.get_current_modname() -modpath = minetest.get_modpath(modname) +local modname = minetest.get_current_modname() +local modpath = minetest.get_modpath(modname) local function sanitizeNick(data_received) return string.gsub(data_received, "%c", ""):sub( 1, 20 )