Skip to content

Commit

Permalink
Fix: Show the correct port that Geyser started on when using Geyser-F…
Browse files Browse the repository at this point in the history
…abric on a client. (GeyserMC#4335)
  • Loading branch information
onebeastchris authored Dec 12, 2023
1 parent d63a70d commit 3d05181
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import net.minecraft.network.chat.Component;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.level.GameType;
import org.geysermc.geyser.GeyserImpl;
import org.geysermc.geyser.platform.fabric.GeyserFabricMod;
import org.geysermc.geyser.platform.fabric.GeyserServerPortGetter;
import org.geysermc.geyser.text.GeyserLocale;
Expand Down Expand Up @@ -62,7 +63,7 @@ private void onOpenToLan(GameType gameType, boolean cheatsAllowed, int port, Cal
// Give indication that Geyser is loaded
Objects.requireNonNull(this.minecraft.player);
this.minecraft.player.displayClientMessage(Component.literal(GeyserLocale.getPlayerLocaleString("geyser.core.start",
this.minecraft.options.languageCode, "localhost", String.valueOf(this.publishedPort))), false);
this.minecraft.options.languageCode, "localhost", String.valueOf(GeyserImpl.getInstance().bedrockListener().port()))), false);
}
}

Expand Down

0 comments on commit 3d05181

Please sign in to comment.