Fix incomplete patch for item id packet (#13)

This commit is contained in:
miozune authored and GitHub committed 2023-12-01 17:56:58 +09:00
1 parent d6e2b946b1
commit e8dab57101
1 file changed
+2 -2
@@ -201,9 +201,9 @@ public class MCDataOutputWrapper implements MCDataOutput {
public MCDataOutputWrapper writeItemStack(ItemStack stack, boolean large) {
if (stack == null) {
writeShort(-1);
writeInt(-1);
} else {
writeShort(Item.getIdFromItem(stack.getItem()));
writeInt(Item.getIdFromItem(stack.getItem()));
if (large) writeInt(stack.stackSize);
else writeByte(stack.stackSize);
writeShort(stack.getItemDamage());