From 2ff0f6f5d65d4a5de0de2e4d7021c13d1a5ec124 Mon Sep 17 00:00:00 2001 From: Jerom van der Sar Date: Mon, 27 Apr 2015 00:48:33 +0200 Subject: [PATCH] Fix Forge clients being unable to log in. Resolves #493 --- buildnumber.properties | 4 ++-- .../TotalFreedomMod/Listener/TFM_PlayerListener.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/buildnumber.properties b/buildnumber.properties index 950c1cbb..68a0247e 100644 --- a/buildnumber.properties +++ b/buildnumber.properties @@ -1,3 +1,3 @@ #Build Number for ANT. Do not edit! -#Mon Apr 27 00:39:03 CEST 2015 -build.number=992 +#Mon Apr 27 00:47:37 CEST 2015 +build.number=993 diff --git a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java index d61a0bd7..c8b1616f 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java +++ b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java @@ -908,7 +908,7 @@ public class TFM_PlayerListener implements Listener { 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 int connectPort = TotalFreedomMod.server.getPort();