Fix bug when a modloader mod is run on a dedicated server and has a

connection handler assigned to it. Hi SmartMoving! Perhaps you should try
@Mod instead of BaseMod?
This commit is contained in:
Christian 2012-11-04 10:57:49 -05:00
parent 9c3b07f53a
commit 27aa35aa17

View file

@ -39,7 +39,7 @@ public class ModLoaderConnectionHandler implements IConnectionHandler
@Override @Override
public void connectionClosed(INetworkManager manager) public void connectionClosed(INetworkManager manager)
{ {
if (!ModLoaderHelper.sidedHelper.clientConnectionClosed(manager, mod)) if (ModLoaderHelper.sidedHelper==null || !ModLoaderHelper.sidedHelper.clientConnectionClosed(manager, mod))
{ {
mod.serverDisconnect(); mod.serverDisconnect();
mod.onClientLogout(manager); mod.onClientLogout(manager);