13
0
geforkt von Mirrors/Velocity

Fix a bug where it would try to register legacy channels(!) on 1.13+

Dieser Commit ist enthalten in:
Andrew Steinborn 2018-09-29 14:53:04 -04:00
Ursprung a44bb3b048
Commit 5af09f906a

Datei anzeigen

@ -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;
} }