]> git.lizzy.rs Git - worldedit.git/blobdiff - worldedit/serialization.lua
Use minetest.global_exists for LuaJIT check
[worldedit.git] / worldedit / serialization.lua
index c3793b2475509f934fe42d2360b1e84f8b0bd7a9..0b3cc4b5007476168055c385b141e32fa4d6c2c2 100644 (file)
@@ -118,7 +118,7 @@ end
 -- by ChillCode, available under the MIT license.\r
 local function deserialize_workaround(content)\r
        local nodes\r
-       if not jit then\r
+       if not minetest.global_exists("jit") then\r
                nodes = minetest.deserialize(content, true)\r
        else\r
                -- XXX: This is a filthy hack that works surprisingly well\r