forked from GeyserMC/Geyser
* fix #1110 * updating comments in config.yml * Fix indentation * Centralize localhost retrieval; remove unnecessary Docker check * Add config.yml Co-authored-by: DoctorMacc <toy.fighter1@gmail.com>
This commit is contained in:
parent
1ead2900a3
commit
0e91475c62
8 changed files with 32 additions and 51 deletions
|
@ -104,11 +104,9 @@ public class GeyserSpongePlugin implements GeyserBootstrap {
|
|||
|
||||
// Don't change the ip if its listening on all interfaces
|
||||
// By default this should be 127.0.0.1 but may need to be changed in some circumstances
|
||||
if (!javaAddr.getHostString().equals("0.0.0.0") && !javaAddr.getHostString().equals("")) {
|
||||
serverIP.setValue("127.0.0.1");
|
||||
if (this.geyserConfig.getRemote().getAddress().equalsIgnoreCase("auto")) {
|
||||
serverPort.setValue(javaAddr.getPort());
|
||||
}
|
||||
|
||||
serverPort.setValue(javaAddr.getPort());
|
||||
}
|
||||
|
||||
ConfigurationNode bedrockPort = config.getNode("bedrock").getNode("port");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue