Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-23 23:00:35 +01:00
Fix improper packet mapping for chat messages.
This fixes the statistics display on the client.
Dieser Commit ist enthalten in:
Ursprung
42f0dbf646
Commit
f27b7e4e2f
@ -45,7 +45,7 @@ public enum StateRegistry {
|
||||
map(0x01, MINECRAFT_1_8, false),
|
||||
map(0x02, MINECRAFT_1_9, false),
|
||||
map(0x03, MINECRAFT_1_12, false),
|
||||
map(0x02, MINECRAFT_1_12_2, false),
|
||||
map(0x02, MINECRAFT_1_12_1, false),
|
||||
map(0x02, MINECRAFT_1_13, false));
|
||||
SERVERBOUND.register(ClientSettings.class, ClientSettings::new,
|
||||
map(0x15, MINECRAFT_1_8, false),
|
||||
@ -198,7 +198,6 @@ public enum StateRegistry {
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
public <P extends MinecraftPacket> void register(Class<P> clazz, Supplier<P> packetSupplier, PacketMapping... mappings) {
|
||||
if (mappings.length == 0) {
|
||||
throw new IllegalArgumentException("At least one mapping must be provided.");
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren