fix: problem with PluginMessageEvents for configuration phase (#1517)

This commit is contained in:
ST3V1K
2025-02-22 17:08:37 +01:00
committed by GitHub
parent e69213f987
commit 58816c804a

View File

@@ -134,7 +134,7 @@ public class ClientConfigSessionHandler implements MinecraftSessionHandler {
ChannelIdentifier id = this.server.getChannelRegistrar().getFromId(packet.getChannel());
if (id == null) {
serverConn.getPlayer().getConnection().write(packet.retain());
serverConn.ensureConnected().write(packet.retain());
return true;
}