Fix Forge clients being unable to log in. Resolves #493

This commit is contained in:
Jerom van der Sar 2015-04-27 00:48:33 +02:00
parent 9ff6325469
commit 2ff0f6f5d6
2 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Mon Apr 27 00:39:03 CEST 2015 #Mon Apr 27 00:47:37 CEST 2015
build.number=992 build.number=993

View file

@ -908,7 +908,7 @@ public class TFM_PlayerListener implements Listener
{ {
if (TFM_ConfigEntry.FORCE_IP_ENABLED.getBoolean()) if (TFM_ConfigEntry.FORCE_IP_ENABLED.getBoolean())
{ {
final String hostname = event.getHostname(); final String hostname = event.getHostname().replace("FML", ""); // Forge fix - https://github.com/TotalFreedom/TotalFreedomMod/issues/493
final String connectAddress = TFM_ConfigEntry.SERVER_ADDRESS.getString(); final String connectAddress = TFM_ConfigEntry.SERVER_ADDRESS.getString();
final int connectPort = TotalFreedomMod.server.getPort(); final int connectPort = TotalFreedomMod.server.getPort();