Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-03 14:50:30 +01:00
Don't try to send register messages without channels
Bukkit interprets this as attempting to register the channel "" (the empty string), which fails on Minecraft 1.13 and above.
Dieser Commit ist enthalten in:
Ursprung
6882b7074c
Commit
232ee9b63b
@ -178,7 +178,12 @@ public class InventoryPackets {
|
||||
Via.getPlatform().getLogger().warning("Ignoring plugin channel in outgoing REGISTER: " + channels[i]);
|
||||
}
|
||||
}
|
||||
if (!rewrittenChannels.isEmpty()) {
|
||||
wrapper.write(Type.REMAINING_BYTES, Joiner.on('\0').join(rewrittenChannels).getBytes(StandardCharsets.UTF_8));
|
||||
} else {
|
||||
wrapper.cancel();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
wrapper.set(Type.STRING, 0, channel);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren