Skip to content
Snippets Groups Projects
Commit fd1a5707 authored by ShadowNinja's avatar ShadowNinja
Browse files

Remove undefined global warning without LuaJIT

parent 18b80bd1
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment