From 2f2f5a7defeb1b5be973b4b1e0eba3e055ad8a6f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 12 Sep 2021 19:35:57 +0200 Subject: [PATCH] Use minetest.global_exists for LuaJIT check closes #199 --- worldedit/serialization.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit/serialization.lua b/worldedit/serialization.lua index c3793b2..0b3cc4b 100644 --- a/worldedit/serialization.lua +++ b/worldedit/serialization.lua @@ -118,7 +118,7 @@ end -- by ChillCode, available under the MIT license. local function deserialize_workaround(content) local nodes - if not jit then + if not minetest.global_exists("jit") then nodes = minetest.deserialize(content, true) else -- XXX: This is a filthy hack that works surprisingly well