diff --git a/api/src/main/java/com/viaversion/viaversion/api/type/types/item/ItemType1_20_5.java b/api/src/main/java/com/viaversion/viaversion/api/type/types/item/ItemType1_20_5.java index 021de65d4..2feef8b41 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/type/types/item/ItemType1_20_5.java +++ b/api/src/main/java/com/viaversion/viaversion/api/type/types/item/ItemType1_20_5.java @@ -82,7 +82,7 @@ public class ItemType1_20_5 extends Type { @Override public void write(final ByteBuf buffer, @Nullable final Item object) { - if (object == null) { + if (object == null || object.identifier() == 0 || object.amount() <= 0) { Types.VAR_INT.writePrimitive(buffer, 0); return; }