]> git.lizzy.rs Git - worldedit.git/commitdiff
Use minetest.global_exists for LuaJIT check
authorsfan5 <sfan5@live.de>
Sun, 12 Sep 2021 17:35:57 +0000 (19:35 +0200)
committersfan5 <sfan5@live.de>
Sun, 12 Sep 2021 17:35:57 +0000 (19:35 +0200)
closes #199

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