Skip to content

Commit 58816c8

Browse files
authored
fix: problem with PluginMessageEvents for configuration phase (#1517)
1 parent e69213f commit 58816c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConfigSessionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public boolean handle(final PluginMessagePacket packet) {
134134
ChannelIdentifier id = this.server.getChannelRegistrar().getFromId(packet.getChannel());
135135

136136
if (id == null) {
137-
serverConn.getPlayer().getConnection().write(packet.retain());
137+
serverConn.ensureConnected().write(packet.retain());
138138
return true;
139139
}
140140

0 commit comments

Comments
 (0)