Properly allow Forge clients to log in. Fixes #493

This commit is contained in:
ChargedCreeper 2015-06-03 14:40:12 -04:00 committed by Jerom van der Sar
parent c002fbc537
commit 1ed1b352f3

View file

@ -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();