]> git.lizzy.rs Git - lua_async_mt.git/blob - init.lua
Fix paths
[lua_async_mt.git] / init.lua
1 local path = minetest.get_modpath(minetest.get_current_modname()) .. "/src"
2
3 dofile(path .. "/init.lua")(path, true)
4
5 minetest.register_globalstep(function(dtime)
6         lua_async.step(dtime)
7 end)
8
9 function lua_async.mt_validate_objs(...)
10         for _, ref in ipairs {...} do
11                 if not ref:is_player() and not ref:get_luaentity() then
12                         lua_async.kill_thread()
13                 end
14         end
15 end