forked from minetest-mods/irc
Testing
This commit is contained in:
parent
60506bb195
commit
4cbb5b8ce7
@ -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
|
||||||
|
minetest.after(1.0, function ( )
|
||||||
irc.quit("Closing.");
|
irc.quit("Closing.");
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end);
|
end);
|
||||||
|
Loading…
Reference in New Issue
Block a user