Fix: Modded platform injector not being used

This commit is contained in:
onebeastchris 2024-04-28 23:52:23 +02:00
parent 8ab0921448
commit 82123aecf1

View file

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