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.
|
// The last player will leave after this hook is executed.
|
||||||
if (Utils.ActivePlayers() == 1)
|
if (Utils.ActivePlayers() == 0)
|
||||||
{
|
{
|
||||||
if (Config.SaveWorldOnLastPlayerExit)
|
if (Config.SaveWorldOnLastPlayerExit)
|
||||||
SaveManager.Instance.SaveWorld();
|
SaveManager.Instance.SaveWorld();
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 1abc24cdba74577f9b5202a31bf0fe041027ceaa
|
Subproject commit dbe598fa23b934bc3719753bf41044506fe4a30f
|
||||||
Loading…
Add table
Add a link
Reference in a new issue