Only revert to frozen data on server shutdown on client. Should fix race condition exposed by #4904

This commit is contained in:
LexManos committed 2018-04-29 17:57:33 -07:00
1 parent 412c2ae53f
commit 4df55f3bd3
2 files changed
+2 -1

No files matched your search

@@ -705,6 +705,8 @@ public class FMLClientHandler implements IFMLSidedHandler
{
// ObfuscationReflectionHelper.setPrivateValue(MinecraftServer.class, server, true, "field_71296"+"_Q","serverIs"+"Running");
}
GameData.revertToFrozen();
}
@Override
@@ -864,7 +864,6 @@ public class Loader
public void serverStopped()
{
GameData.revertToFrozen();
modController.distributeStateMessage(LoaderState.SERVER_STOPPED);
modController.transition(LoaderState.SERVER_STOPPED, true);
modController.transition(LoaderState.AVAILABLE, true);