Fix connection to vanilla servers. Generate a default mod server config

for mods connecting to servers.

Signed-off-by: cpw <[email protected]>
This commit is contained in:
cpw committed 2019-02-17 16:07:47 -05:00
1 parent e248503b0a
commit e47fa70279
5 files changed
+40 -8

No files matched your search

@@ -52,7 +52,7 @@ public class TextComponentHelper
{
EntityPlayerMP playerMP = (EntityPlayerMP) sender;
NetHandlerPlayServer channel = playerMP.connection;
return NetworkHooks.getConnectionType(channel) == ConnectionType.VANILLA;
return NetworkHooks.getConnectionType(()->channel.netManager) == ConnectionType.VANILLA;
}
return false;
}