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

Co-authored-by: Paldiu <pawereus@gmail.com>
This commit is contained in:
Nathan Curran 2022-01-24 12:42:47 +11:00 committed by GitHub
parent 850f12103c
commit 2618d97a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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