You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
419 B

local function runAffects()
for _,player in ipairs( minetest.get_connected_players() ) do
local name = player:get_player_name()
if ( affects._affectedPlayers[name] ) ~= nil then
for affectid,a in pairs(affects._affectedPlayers[name]) do
applyAffect(name,affectid)
end
end
end
affects.saveAffects()
minetest.after(affects.affectTime, runAffects)
end
minetest.after(affects.affectTime, runAffects)