1
0
mirror of https://github.com/minetest-mods/irc.git synced 2024-11-05 01:30:19 +01:00

Remove undefined global warning without LuaJIT

This commit is contained in:
ShadowNinja 2015-04-03 12:42:57 -04:00
parent 18b80bd127
commit fd1a570794

View File

@ -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"