Future-proof metatable access

master
Pedro Gimeno 2020-06-12 13:47:30 +02:00
parent aa99aac031
commit e7db790a04
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,10 @@ if not ie then
return
end
-- We need raw read access to the metatables for monkey-patching
local getmetatable = ie.debug.getmetatable
local setmetatable = setmetatable
local ok, ffi = pcall(ie.require, 'ffi')
if not ok or not ffi then
minetest.log("warning", err_prefix .. "FFI is not available in this system")