From cedfe1387b7860634e8c8439218235e57d81de02 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Fri, 18 Jun 2021 20:44:07 +0200 Subject: [PATCH] Remove most global localization from init.lua --- init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/init.lua b/init.lua index bc22ed8..895c1c2 100644 --- a/init.lua +++ b/init.lua @@ -1,6 +1,3 @@ --- Localize globals -local _G, _VERSION, assert, debug, dump, error, load, loadfile, minetest, pairs, rawget, rawset, setmetatable, table = _G, _VERSION, assert, debug, dump, error, load, loadfile, minetest, pairs, rawget, rawset, setmetatable, table - -- Lua version check if _VERSION then if _VERSION < "Lua 5" then @@ -86,6 +83,7 @@ local function get_resource(modname, resource, ...) return table.concat({minetest.get_modpath(modname), resource, ...}, modlib.dir_delim) end +local rawget, rawset = rawget, rawset modlib = setmetatable({ -- TODO bump on release version = 69,