From f2e35a0c5a16622f9df9cf89b069ce379ee05bff Mon Sep 17 00:00:00 2001 From: Marco Neuhaus Date: Tue, 28 Aug 2018 19:47:01 +0200 Subject: [PATCH] add comment --- .../protocol/protocol1_13to1_13_1/packets/InventoryPackets.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13to1_13_1/packets/InventoryPackets.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13to1_13_1/packets/InventoryPackets.java index d9cdcce1..f1f94122 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13to1_13_1/packets/InventoryPackets.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_13to1_13_1/packets/InventoryPackets.java @@ -121,6 +121,7 @@ public class InventoryPackets { item.setId((short) getOldItemId(item.getId())); } + //1.13.1 Item Id public static int getNewItemId(int itemId) { if (itemId >= 443) { return itemId + 5; @@ -133,6 +134,7 @@ public class InventoryPackets { item.setId((short) getNewItemId(item.getId())); } + //1.13 Item Id public static int getOldItemId(int newId) { if (newId >= 448) { return newId - 5;