This commit is contained in:
Diego Martínez 2012-12-18 03:21:16 -02:00
parent 60506bb195
commit 4cbb5b8ce7

View File

@ -72,8 +72,10 @@ minetest.register_globalstep(function ( dtime )
irc.poll(); irc.poll();
mt_irc.cur_time = mt_irc.cur_time - mt_irc.dtime; mt_irc.cur_time = mt_irc.cur_time - mt_irc.dtime;
local plys = minetest.get_connected_players(); local plys = minetest.get_connected_players();
if (#plys <= 0) then -- Just in case :) if ((#plys <= 0) and (minetest.is_singleplayer())) then
irc.quit("Closing."); minetest.after(1.0, function ( )
irc.quit("Closing.");
end)
end end
end end
end); end);