From fd1a570794fa33fb14c84aefbb921a4ee82e5891 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Fri, 3 Apr 2015 12:42:57 -0400 Subject: [PATCH] Remove undefined global warning without LuaJIT --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 8a6ab85..7f3ac6a 100644 --- a/init.lua +++ b/init.lua @@ -13,7 +13,7 @@ package.path = -- The build of Lua that Minetest comes with only looks for libraries under -- /usr/local/share and /usr/local/lib but LuaSocket is often installed under -- /usr/share and /usr/lib. -if not jit and package.config:sub(1, 1) == "/" then +if not rawget(_G, "jit") and package.config:sub(1, 1) == "/" then package.path = package.path.. ";/usr/share/lua/5.1/?.lua".. ";/usr/share/lua/5.1/?/init.lua"