add comment

This commit is contained in:
Marco Neuhaus 2018-08-28 19:47:01 +02:00
parent 00ad68389c
commit f2e35a0c5a

View File

@ -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;