From 1ed1b352f301e373b64769f79909c9cfec2da5be Mon Sep 17 00:00:00 2001 From: ChargedCreeper Date: Wed, 3 Jun 2015 14:40:12 -0400 Subject: [PATCH] Properly allow Forge clients to log in. Fixes #493 --- src/me/StevenLawson/TotalFreedomMod/TFM_ServerInterface.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/StevenLawson/TotalFreedomMod/TFM_ServerInterface.java b/src/me/StevenLawson/TotalFreedomMod/TFM_ServerInterface.java index 0f7ea8f0..0e9f77f8 100644 --- a/src/me/StevenLawson/TotalFreedomMod/TFM_ServerInterface.java +++ b/src/me/StevenLawson/TotalFreedomMod/TFM_ServerInterface.java @@ -112,7 +112,7 @@ public class TFM_ServerInterface // Check force-IP match if (TFM_ConfigEntry.FORCE_IP_ENABLED.getBoolean()) { - final String hostname = event.getHostname().replace("FML", ""); // Forge fix - https://github.com/TotalFreedom/TotalFreedomMod/issues/493 + final String hostname = event.getHostname().replace("\u0000FML\u0000", ""); // Forge fix - https://github.com/TotalFreedom/TotalFreedomMod/issues/493 final String connectAddress = TFM_ConfigEntry.SERVER_ADDRESS.getString(); final int connectPort = TotalFreedomMod.server.getPort();