Remove requireNonNull method from getIp, which causes NPE - resolves FS-429 (#187)

Co-authored-by: Paldiu <[email protected]>
This commit is contained in:
Nathan Curran
2022-01-24 12:42:47 +11:00
committed by GitHub
co-authored by Paldiu
parent 850f12103c
commit 2618d97a3e
@@ -752,7 +752,7 @@ public class FUtil
public static String getIp(Player player)
{
return Objects.requireNonNull(player.getAddress()).getAddress().getHostAddress().trim();
return player.getAddress().getAddress().getHostAddress().trim();
}
public static String getIp(PlayerLoginEvent event)