Fix up network negotiation - now it will disconnect with a nice

error screen if there are missing mods on the client vs server
This commit is contained in:
Christian committed 2012-08-26 22:13:43 -04:00
1 parent b32dea398b
commit 5a6275f0e1
11 files changed
+185 -9

No files matched your search

@@ -25,6 +25,7 @@ import cpw.mods.fml.common.ObfuscationReflectionHelper;
import cpw.mods.fml.common.Side;
import cpw.mods.fml.common.network.EntitySpawnAdjustmentPacket;
import cpw.mods.fml.common.network.EntitySpawnPacket;
import cpw.mods.fml.common.network.ModMissingPacket;
import cpw.mods.fml.common.registry.EntityRegistry.EntityRegistration;
import cpw.mods.fml.common.registry.LanguageRegistry;
@@ -150,4 +151,9 @@ public class FMLServerHandler implements IFMLSidedHandler
{
throw new RuntimeException("You cannot send a bare packet without a target on the server!");
}
@Override
public void displayMissingMods(ModMissingPacket modMissingPacket)
{
// NOOP on server
}
}