mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-03-13 16:07:06 +08:00
Fix improper packet mapping for chat messages.
This fixes the statistics display on the client.
This commit is contained in:
parent
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.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user