mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-15 17:45:06 +00:00
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:
1 parent
bd2123cf9d
commit
4ff2cff3c0
1 file changed
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user