mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 20:22:28 +00:00
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:
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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user