From b7fc4417ccf914c5e90b1671321331f6b06d41b4 Mon Sep 17 00:00:00 2001 From: Encritary Date: Sat, 21 Dec 2024 12:32:19 +0300 Subject: [PATCH] fix: AdventureSettingsPacket can be both server- and clientbound this is true for older versions of MCBE in cases of using flight, for example --- .../cloudburstmc/protocol/bedrock/codec/v291/Bedrock_v291.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v291/Bedrock_v291.java b/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v291/Bedrock_v291.java index 1b3cd99f4..b01a4aa7d 100644 --- a/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v291/Bedrock_v291.java +++ b/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v291/Bedrock_v291.java @@ -687,7 +687,7 @@ public class Bedrock_v291 { .registerPacket(CraftingDataPacket::new, CraftingDataSerializer_v291.INSTANCE, 52, PacketRecipient.CLIENT) .registerPacket(CraftingEventPacket::new, CraftingEventSerializer_v291.INSTANCE, 53, PacketRecipient.BOTH) .registerPacket(GuiDataPickItemPacket::new, GuiDataPickItemSerializer_v291.INSTANCE, 54, PacketRecipient.CLIENT) - .registerPacket(AdventureSettingsPacket::new, AdventureSettingsSerializer_v291.INSTANCE, 55, PacketRecipient.CLIENT) + .registerPacket(AdventureSettingsPacket::new, AdventureSettingsSerializer_v291.INSTANCE, 55, PacketRecipient.BOTH) .registerPacket(BlockEntityDataPacket::new, BlockEntityDataSerializer_v291.INSTANCE, 56, PacketRecipient.BOTH) .registerPacket(PlayerInputPacket::new, PlayerInputSerializer_v291.INSTANCE, 57, PacketRecipient.SERVER) .registerPacket(LevelChunkPacket::new, FullChunkDataSerializer_v291.INSTANCE, 58, PacketRecipient.CLIENT)