mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-06-17 13:35:47 +00:00
Remove requireNonNull method from getIp, which causes NPE - resolves FS-429 (#187)
Co-authored-by: Paldiu <pawereus@gmail.com>
This commit is contained in:
parent
850f12103c
commit
2618d97a3e
1 changed files with 1 additions and 1 deletions
|
@ -752,7 +752,7 @@ public class FUtil
|
||||||
|
|
||||||
public static String getIp(Player player)
|
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)
|
public static String getIp(PlayerLoginEvent event)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue