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();