Fix handshaking properly. Also, fix ID syncup. It now will completely freeze the idmap after preinit.

This frozen map is used to inject "new" stuff into existing serverside worlds. Interesting sideeffect: remote
servers lacking things will change the client, to also LACK ids for those things. watch for -1 ids in your remap
events. Note: idmaps should be considered temporary per server instance. SERVERSTOPPED will restore "startup" state,
as will client logout.
This commit is contained in:
Christian committed 2013-12-24 00:47:10 -05:00
1 parent 156a9ae03a
commit 7d3b1250e8
12 files changed
+195 -28

No files matched your search

@@ -54,6 +54,7 @@ import cpw.mods.fml.common.ModContainer;
import cpw.mods.fml.common.ModMetadata;
import cpw.mods.fml.common.ObfuscationReflectionHelper;
import cpw.mods.fml.common.WrongMinecraftVersionException;
import cpw.mods.fml.common.registry.GameData;
import cpw.mods.fml.common.toposort.ModSortingException;
import cpw.mods.fml.relauncher.Side;
@@ -488,4 +489,9 @@ public class FMLClientHandler implements IFMLSidedHandler
{
return this.client.func_147114_u()!=null ? this.client.func_147114_u().func_147298_b() : null;
}
public void handleClientWorldClosing(WorldClient field_71441_e)
{
GameData.revertToFrozen();
}
}