Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit e8dab57

Browse files
authored
Fix incomplete patch for item id packet (#13)
1 parent d6e2b94 commit e8dab57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/codechicken/lib/data/MCDataOutputWrapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ public MCDataOutputWrapper writeItemStack(ItemStack stack) {
201201

202202
public MCDataOutputWrapper writeItemStack(ItemStack stack, boolean large) {
203203
if (stack == null) {
204-
writeShort(-1);
204+
writeInt(-1);
205205
} else {
206-
writeShort(Item.getIdFromItem(stack.getItem()));
206+
writeInt(Item.getIdFromItem(stack.getItem()));
207207
if (large) writeInt(stack.stackSize);
208208
else writeByte(stack.stackSize);
209209
writeShort(stack.getItemDamage());

0 commit comments

Comments
 (0)