3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 16:12:46 +01:00

Fix: Modded platform injector not being used

Dieser Commit ist enthalten in:
onebeastchris 2024-04-28 23:52:23 +02:00
Ursprung 8ab0921448
Commit 82123aecf1

Datei anzeigen

@ -58,6 +58,7 @@ import org.geysermc.geyser.util.FileUtils;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.net.SocketAddress;
import java.nio.file.Path; import java.nio.file.Path;
import java.util.Map; import java.util.Map;
import java.util.UUID; import java.util.UUID;
@ -240,6 +241,11 @@ public abstract class GeyserModBootstrap implements GeyserBootstrap {
return ip != null ? ip : ""; // See issue #3812 return ip != null ? ip : ""; // See issue #3812
} }
@Override
public SocketAddress getSocketAddress() {
return this.geyserInjector.getServerSocketAddress();
}
@Override @Override
public int getServerPort() { public int getServerPort() {
return ((GeyserServerPortGetter) server).geyser$getServerPort(); return ((GeyserServerPortGetter) server).geyser$getServerPort();