Skip to content

Commit

Permalink
Fix channel to user association in fabric module
Browse files Browse the repository at this point in the history
  • Loading branch information
booky10 committed Oct 27, 2024
1 parent 980d306 commit 9e6f3fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private static void configureSerialization(
Channel channel = pipeline.channel();
User user = new User(channel, ConnectionState.HANDSHAKING,
CLIENT_VERSION, new UserProfile(null, null));
ProtocolManager.USERS.put(channel, user);
ProtocolManager.USERS.put(channel.pipeline(), user);

UserConnectEvent connectEvent = new UserConnectEvent(user);
PacketEvents.getAPI().getEventManager().callEvent(connectEvent);
Expand Down

0 comments on commit 9e6f3fb

Please sign in to comment.