From 5af09f906a197769735cf5fe9cb13b06f4c3c3f7 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sat, 29 Sep 2018 14:53:04 -0400 Subject: [PATCH] Fix a bug where it would try to register legacy channels(!) on 1.13+ --- .../velocitypowered/proxy/util/VelocityChannelRegistrar.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/util/VelocityChannelRegistrar.java b/proxy/src/main/java/com/velocitypowered/proxy/util/VelocityChannelRegistrar.java index 8d60d8224..f88d2697e 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/util/VelocityChannelRegistrar.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/util/VelocityChannelRegistrar.java @@ -46,7 +46,9 @@ public class VelocityChannelRegistrar implements ChannelRegistrar { public Collection getModernChannelIds() { Collection ids = new ArrayList<>(); for (ChannelIdentifier value : identifierMap.values()) { - ids.add(value.getId()); + if (value instanceof MinecraftChannelIdentifier) { + ids.add(value.getId()); + } } return ids; }