prevent the world from getting saved twice at shutdown

This commit is contained in:
Player committed 2014-04-26 21:56:25 +02:00
1 parent 59a5adfdb3
commit d88b2aa0c5
1 file changed
+1 -1
@@ -17,7 +17,7 @@
public void func_71260_j()
{
- if (!this.field_71290_O)
+ if (!this.field_71290_O && Loader.instance().hasReachedState(LoaderState.SERVER_STARTED))
+ if (!this.field_71290_O && Loader.instance().hasReachedState(LoaderState.SERVER_STARTED) && !field_71316_v) // make sure the save is valid and we don't save twice
{
field_147145_h.info("Stopping server");