diff --git a/api/src/main/java/com/viaversion/viaversion/api/protocol/version/ProtocolVersion.java b/api/src/main/java/com/viaversion/viaversion/api/protocol/version/ProtocolVersion.java index 4bfe506ab..55a533206 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/protocol/version/ProtocolVersion.java +++ b/api/src/main/java/com/viaversion/viaversion/api/protocol/version/ProtocolVersion.java @@ -82,7 +82,7 @@ public class ProtocolVersion { public static final ProtocolVersion v1_19 = register(759, "1.19"); public static final ProtocolVersion v1_19_1 = register(760, "1.19.1/2", new VersionRange("1.19", 1, 2)); public static final ProtocolVersion v1_19_3 = register(761, "1.19.3"); - public static final ProtocolVersion v1_19_4 = register(762, 121, "1.19.4"); + public static final ProtocolVersion v1_19_4 = register(762, 122, "1.19.4"); public static final ProtocolVersion unknown = register(-1, "UNKNOWN"); public static ProtocolVersion register(int version, String name) { diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_4to1_19_3/packets/InventoryPackets.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_4to1_19_3/packets/InventoryPackets.java index b39a7fbc3..234e7cee9 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_4to1_19_3/packets/InventoryPackets.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_4to1_19_3/packets/InventoryPackets.java @@ -18,6 +18,7 @@ package com.viaversion.viaversion.protocols.protocol1_19_4to1_19_3.packets; import com.viaversion.viaversion.api.protocol.packet.PacketWrapper; +import com.viaversion.viaversion.api.protocol.remapper.PacketHandlers; import com.viaversion.viaversion.api.type.Type; import com.viaversion.viaversion.protocols.protocol1_18to1_17_1.types.Chunk1_18Type; import com.viaversion.viaversion.protocols.protocol1_19_3to1_19_1.ClientboundPackets1_19_3; @@ -43,6 +44,21 @@ public final class InventoryPackets extends ItemRewriter { + final int windowType = wrapper.get(Type.VAR_INT, 1); + if (windowType >= 21) { // New smithing menu + wrapper.set(Type.VAR_INT, 1, windowType + 1); + } + }); + } + }); + registerSetCooldown(ClientboundPackets1_19_3.COOLDOWN); registerWindowItems1_17_1(ClientboundPackets1_19_3.WINDOW_ITEMS); registerSetSlot1_17_1(ClientboundPackets1_19_3.SET_SLOT); diff --git a/gradle.properties b/gradle.properties index a4b910643..50b0aac8b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ # Project properties - we put these here so they can be modified without causing a recompile of the build scripts -projectVersion=4.6.0-1.19.4-pre2-SNAPSHOT +projectVersion=4.6.0-1.19.4-pre3-SNAPSHOT # Gradle properties org.gradle.daemon=true