File tree Expand file tree Collapse file tree
src/main/java/codechicken/lib/packet Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -351,9 +351,9 @@ public PacketCustom writeItemStack(ItemStack stack) {
351351
352352 public PacketCustom writeItemStack (ItemStack stack , boolean large ) {
353353 if (stack == null ) {
354- writeShort (-1 );
354+ writeInt (-1 );
355355 } else {
356- writeShort (Item .getIdFromItem (stack .getItem ()));
356+ writeInt (Item .getIdFromItem (stack .getItem ()));
357357 if (large ) writeInt (stack .stackSize );
358358 else writeByte (stack .stackSize );
359359 writeShort (stack .getItemDamage ());
@@ -448,7 +448,7 @@ public ItemStack readItemStack() {
448448
449449 public ItemStack readItemStack (boolean large ) {
450450 ItemStack item = null ;
451- short itemID = readShort ();
451+ int itemID = readInt ();
452452
453453 if (itemID >= 0 ) {
454454 int stackSize = large ? readInt () : readByte ();
You can’t perform that action at this time.
0 commit comments