From a9e4c4c9b7ea8d76b65078daa07232fa97ff2e9a Mon Sep 17 00:00:00 2001 From: LT_Name <572413378@qq.com> Date: Tue, 26 Nov 2024 17:43:15 +0800 Subject: [PATCH] Fix SetPlayerInventoryOptionsSerializer_v630 name --- .../protocol/bedrock/codec/v630/Bedrock_v630.java | 4 ++-- ...360.java => SetPlayerInventoryOptionsSerializer_v630.java} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v630/serializer/{SetPlayerInventoryOptionsSerializer_v360.java => SetPlayerInventoryOptionsSerializer_v630.java} (96%) diff --git a/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v630/Bedrock_v630.java b/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v630/Bedrock_v630.java index c3deaef3b..a630d2744 100644 --- a/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v630/Bedrock_v630.java +++ b/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v630/Bedrock_v630.java @@ -9,7 +9,7 @@ import org.cloudburstmc.protocol.bedrock.codec.v361.serializer.LevelEventGenericSerializer_v361; import org.cloudburstmc.protocol.bedrock.codec.v575.BedrockCodecHelper_v575; import org.cloudburstmc.protocol.bedrock.codec.v622.Bedrock_v622; -import org.cloudburstmc.protocol.bedrock.codec.v630.serializer.SetPlayerInventoryOptionsSerializer_v360; +import org.cloudburstmc.protocol.bedrock.codec.v630.serializer.SetPlayerInventoryOptionsSerializer_v630; import org.cloudburstmc.protocol.bedrock.codec.v630.serializer.ShowStoreOfferSerializer_v630; import org.cloudburstmc.protocol.bedrock.codec.v630.serializer.ToggleCrafterSlotRequestSerializer_v630; import org.cloudburstmc.protocol.bedrock.data.*; @@ -74,6 +74,6 @@ public class Bedrock_v630 extends Bedrock_v622 { .updateSerializer(LevelSoundEventPacket.class, new LevelSoundEventSerializer_v332(SOUND_EVENTS)) .updateSerializer(ShowStoreOfferPacket.class, ShowStoreOfferSerializer_v630.INSTANCE) .registerPacket(ToggleCrafterSlotRequestPacket::new, new ToggleCrafterSlotRequestSerializer_v630(), 306, PacketRecipient.SERVER) - .registerPacket(SetPlayerInventoryOptionsPacket::new, new SetPlayerInventoryOptionsSerializer_v360(), 307, PacketRecipient.BOTH) + .registerPacket(SetPlayerInventoryOptionsPacket::new, new SetPlayerInventoryOptionsSerializer_v630(), 307, PacketRecipient.BOTH) .build(); } \ No newline at end of file diff --git a/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v630/serializer/SetPlayerInventoryOptionsSerializer_v360.java b/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v630/serializer/SetPlayerInventoryOptionsSerializer_v630.java similarity index 96% rename from bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v630/serializer/SetPlayerInventoryOptionsSerializer_v360.java rename to bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v630/serializer/SetPlayerInventoryOptionsSerializer_v630.java index 2c8bcf91b..c25456c9a 100644 --- a/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v630/serializer/SetPlayerInventoryOptionsSerializer_v360.java +++ b/bedrock-codec/src/main/java/org/cloudburstmc/protocol/bedrock/codec/v630/serializer/SetPlayerInventoryOptionsSerializer_v630.java @@ -9,7 +9,7 @@ import org.cloudburstmc.protocol.bedrock.packet.SetPlayerInventoryOptionsPacket; import org.cloudburstmc.protocol.common.util.VarInts; -public class SetPlayerInventoryOptionsSerializer_v360 implements BedrockPacketSerializer { +public class SetPlayerInventoryOptionsSerializer_v630 implements BedrockPacketSerializer { @Override public void serialize(ByteBuf buffer, BedrockCodecHelper helper, SetPlayerInventoryOptionsPacket packet) {