Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-20 06:50:10 +01:00
add comment
Dieser Commit ist enthalten in:
Ursprung
00ad68389c
Commit
f2e35a0c5a
@ -121,6 +121,7 @@ public class InventoryPackets {
|
|||||||
item.setId((short) getOldItemId(item.getId()));
|
item.setId((short) getOldItemId(item.getId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//1.13.1 Item Id
|
||||||
public static int getNewItemId(int itemId) {
|
public static int getNewItemId(int itemId) {
|
||||||
if (itemId >= 443) {
|
if (itemId >= 443) {
|
||||||
return itemId + 5;
|
return itemId + 5;
|
||||||
@ -133,6 +134,7 @@ public class InventoryPackets {
|
|||||||
item.setId((short) getNewItemId(item.getId()));
|
item.setId((short) getNewItemId(item.getId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//1.13 Item Id
|
||||||
public static int getOldItemId(int newId) {
|
public static int getOldItemId(int newId) {
|
||||||
if (newId >= 448) {
|
if (newId >= 448) {
|
||||||
return newId - 5;
|
return newId - 5;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren