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:
parent
9c3b07f53a
commit
27aa35aa17
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue