15 lines
389 B
Lua
Raw Normal View History

2015-12-03 22:22:04 -06:00
local function runAffects(player,name,dtime)
if ( affects._affectedPlayers[name] ) ~= nil then
for affectid,a in pairs(affects._affectedPlayers[name]) do
applyAffect(name,affectid)
2014-05-10 09:35:17 -05:00
end
end
end
2015-12-03 22:22:04 -06:00
adventuretest.register_pl_hook(runAffects,15)
2014-05-10 09:35:17 -05:00
2015-12-03 22:22:04 -06:00
local function doSave()
affects.saveAffects()
minetest.after(affects.affectTime, doSave)
end
minetest.after(affects.affectTime, doSave)