From 5047aaff0cd3c72d22ae44140bf5445e15cb4d27 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Sun, 19 Jul 2020 13:37:41 +0200 Subject: [PATCH] Fix 1.12->1.13 recipe type switcheroo Fixes #1918 --- .../protocol1_13_1to1_13/packets/InventoryPackets.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13_1to1_13/packets/InventoryPackets.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13_1to1_13/packets/InventoryPackets.java index 6e4561aee..7f730745c 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13_1to1_13/packets/InventoryPackets.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13_1to1_13/packets/InventoryPackets.java @@ -65,9 +65,9 @@ public class InventoryPackets { handler(wrapper -> { int size = wrapper.passthrough(Type.VAR_INT); for (int i = 0; i < size; i++) { - // First type, then id + // First id, then type + String id = wrapper.passthrough(Type.STRING); String type = wrapper.passthrough(Type.STRING).replace("minecraft:", ""); - String id = wrapper.passthrough(Type.STRING); // Recipe Identifier recipeRewriter.handle(wrapper, type); } });