mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Only revert to frozen data on server shutdown on client. Should fix race condition exposed by #4904
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user