Use minetest.global_exists for LuaJIT check

closes #199
This commit is contained in:
sfan5 2021-09-12 19:35:57 +02:00
parent 7f87f1658e
commit 2f2f5a7def
1 changed files with 1 additions and 1 deletions

View File

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