mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
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:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user