mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Check for null server ip on Fabric (#3842)
This commit is contained in:
parent
f9870ac4ce
commit
d6e095424c
1 changed files with 3 additions and 1 deletions
|
@ -217,10 +217,12 @@ public class GeyserFabricMod implements ModInitializer, GeyserBootstrap {
|
||||||
return this.server.getServerVersion();
|
return this.server.getServerVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("ConstantConditions") // IDEA thinks that ip cannot be null
|
||||||
@NotNull
|
@NotNull
|
||||||
@Override
|
@Override
|
||||||
public String getServerBindAddress() {
|
public String getServerBindAddress() {
|
||||||
return this.server.getLocalIp();
|
String ip = this.server.getLocalIp();
|
||||||
|
return ip != null ? ip : ""; // See issue #3812
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue