mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Send known channels to the server when they send us theirs.
This commit is contained in:
3 files changed
+9
-14
No files matched your search
@@ -41,6 +41,9 @@ public class ChannelListManager {
|
||||
var ctx = evt.getSource();
|
||||
updateFrom(ctx, evt.getPayload(), ChannelRegistrationChangeEvent.Type.REGISTER);
|
||||
ctx.setPacketHandled(true);
|
||||
// Send the client's channels to the server whenever asked. If we're in the login state then our login wrapper will unwrap for us.
|
||||
if (ctx.isClientSide())
|
||||
addChannels(ctx.getConnection());
|
||||
}
|
||||
|
||||
private static void unregisterListener(CustomPayloadEvent evt) {
|
||||
|
||||
Reference in new issue
Block a user