Tidied up server leave hook saving the world twice

This commit is contained in:
Tyler Watson 2015-09-12 19:24:05 +10:00
parent f7826f681a
commit 27ebc925b7
2 changed files with 2 additions and 2 deletions

View file

@ -1282,7 +1282,7 @@ namespace TShockAPI
}
// The last player will leave after this hook is executed.
if (Utils.ActivePlayers() == 1)
if (Utils.ActivePlayers() == 0)
{
if (Config.SaveWorldOnLastPlayerExit)
SaveManager.Instance.SaveWorld();

@ -1 +1 @@
Subproject commit 1abc24cdba74577f9b5202a31bf0fe041027ceaa
Subproject commit dbe598fa23b934bc3719753bf41044506fe4a30f