From 5bc2ba600ca8e6c5c49b7a027e715ecfc344c8a9 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 17 Jul 2014 18:06:49 +0200 Subject: Slight performance improvements --- examples.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples.lua') diff --git a/examples.lua b/examples.lua index 71a4f43..7c2102c 100644 --- a/examples.lua +++ b/examples.lua @@ -211,7 +211,7 @@ minetest.register_chatcommand("stresstest", { end minetest.debug("[playereffects] Stress test started for "..name.." with "..max.." effects.") for i=1,max do - minetest.after(0.1,function(player) playereffects.apply_effect_type("stress", 10, player) end, player) + playereffects.apply_effect_type("stress", 10, player) if(i%100==0) then minetest.debug("[playereffects] Effect "..i.." of "..max.." applied.") minetest.chat_send_player(name, "[playereffects] Effect "..i.." of "..max.." applied.") -- cgit v1.2.3