Skip to content

Commit b7f388b

Browse files
CamotoyAJ-Ferguson
andauthored
1.20.5 -> 1.20.3: nullify empty tags (ViaVersion#3949)
Co-authored-by: AJ Ferguson <[email protected]>
1 parent 824ff37 commit b7f388b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common/src/main/java/com/viaversion/viaversion/protocols/v1_20_3to1_20_5/rewriter/BlockItemPacketRewriter1_20_5.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,10 @@ public Item toOldItem(final UserConnection connection, final Item item, final St
408408
dataConverter.writeToTag(connection, structuredData, tag);
409409
}
410410

411+
if (tag.isEmpty()) {
412+
dataItem.setTag(null);
413+
}
414+
411415
return dataItem;
412416
}
413417

0 commit comments

Comments
 (0)