mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 14:37:43 +01:00
Fix a bug where it would try to register legacy channels(!) on 1.13+
This commit is contained in:
@@ -46,7 +46,9 @@ public class VelocityChannelRegistrar implements ChannelRegistrar {
|
|||||||
public Collection<String> getModernChannelIds() {
|
public Collection<String> getModernChannelIds() {
|
||||||
Collection<String> ids = new ArrayList<>();
|
Collection<String> ids = new ArrayList<>();
|
||||||
for (ChannelIdentifier value : identifierMap.values()) {
|
for (ChannelIdentifier value : identifierMap.values()) {
|
||||||
ids.add(value.getId());
|
if (value instanceof MinecraftChannelIdentifier) {
|
||||||
|
ids.add(value.getId());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ids;
|
return ids;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user