From 1dffba1eb58d02103b630bd9cb6b83057f49a557 Mon Sep 17 00:00:00 2001 From: Konicai <71294714+Konicai@users.noreply.github.com> Date: Mon, 27 Nov 2023 11:45:34 -0500 Subject: [PATCH] 1.20.3-pre3 --- .../github/steveice10/mc/protocol/codec/MinecraftCodec.java | 4 ++-- .../steveice10/mc/protocol/data/game/ResourcePackStatus.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/steveice10/mc/protocol/codec/MinecraftCodec.java b/src/main/java/com/github/steveice10/mc/protocol/codec/MinecraftCodec.java index a3133e91..41f70f00 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/codec/MinecraftCodec.java +++ b/src/main/java/com/github/steveice10/mc/protocol/codec/MinecraftCodec.java @@ -212,9 +212,9 @@ public class MinecraftCodec { } public static final PacketCodec CODEC = PacketCodec.builder() - .protocolVersion(764) + .protocolVersion((1 << 30) | 166) .helper(() -> new MinecraftCodecHelper(LEVEL_EVENTS, SOUND_NAMES)) - .minecraftVersion("1.20.2") + .minecraftVersion("1.20.3-pre3") .state(ProtocolState.HANDSHAKE, PacketStateCodec.builder() .registerServerboundPacket(ClientIntentionPacket.class, ClientIntentionPacket::new) ) diff --git a/src/main/java/com/github/steveice10/mc/protocol/data/game/ResourcePackStatus.java b/src/main/java/com/github/steveice10/mc/protocol/data/game/ResourcePackStatus.java index db9094be..4f1437fb 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/data/game/ResourcePackStatus.java +++ b/src/main/java/com/github/steveice10/mc/protocol/data/game/ResourcePackStatus.java @@ -5,6 +5,7 @@ public enum ResourcePackStatus { DECLINED, FAILED_DOWNLOAD, ACCEPTED, + DOWNLOADED, INVALID_URL, FAILED_RELOAD, DISCARDED;