Allow FML2 in forge host keys.

Closes #1542.
This commit is contained in:
wizjany 2020-04-24 11:43:22 -04:00
parent 37e66dae7d
commit 5e7829c3fe

View File

@ -202,7 +202,8 @@ public void onPlayerLogin(PlayerLoginEvent event) {
}
if (!hostname.equals(hostKey)
&& !(cfg.hostKeysAllowFMLClients && hostname.equals(hostKey + "\u0000FML\u0000"))) {
&& !(cfg.hostKeysAllowFMLClients &&
(hostname.equals(hostKey + "\u0000FML\u0000") || hostname.equals(hostKey + "\u0000FML2\u0000")))) {
event.disallow(PlayerLoginEvent.Result.KICK_OTHER,
"You did not join with the valid host key!");
log.warning("WorldGuard host key check: " +