Tidied up server leave hook saving the world twice
This commit is contained in:
parent
f7826f681a
commit
27ebc925b7
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue