aboutsummaryrefslogtreecommitdiff
path: root/init.lua
blob: 256e3f0a4904bd16a9715c940feff9b8bb0cf940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
local path = minetest.get_modpath(minetest.get_current_modname()) .. "/src/"

dofile(path .. "init.lua")(path)

minetest.register_globalstep(function(dtime)
	lua_async.step(dtime)
end)

function lua_async.mt_validate_objs(...)
	for _, ref in ipairs {...} do
		if not ref:is_player() and not ref:get_luaentity() then
			coroutine.yield(true)
		end
	end
end