1.20.5 -> 1.20.3: nullify empty tags (#3949)

Co-authored-by: AJ Ferguson <AJ-Ferguson@users.noreply.github.com>
This commit is contained in:
Camotoy 2024-06-17 03:42:09 -04:00 committed by GitHub
parent 824ff375d4
commit b7f388b9ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -408,6 +408,10 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
dataConverter.writeToTag(connection, structuredData, tag);
}
if (tag.isEmpty()) {
dataItem.setTag(null);
}
return dataItem;
}