Skip to content

Commit

Permalink
Update common/src/main/java/com/viaversion/viabackwards/protocol/v1_2…
Browse files Browse the repository at this point in the history
…0_5to1_20_3/rewriter/BlockItemPacketRewriter1_20_5.java
  • Loading branch information
kennytv committed Aug 14, 2024
1 parent 102f0c6 commit 815628b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public Item handleItemToServer(final UserConnection connection, @Nullable final
// Convert to structured item first
final Item structuredItem = vvProtocol.getItemRewriter().toStructuredItem(connection, item);

if (item.tag() != null && item.tag().get(nbtTagName()) instanceof final CompoundTag tag) {
if (item.tag() != null && item.tag().remove(nbtTagName()) instanceof final CompoundTag tag) {
// Set original custom data from backup
structuredItem.dataContainer().set(StructuredDataKey.CUSTOM_DATA, tag);
}
Expand Down

0 comments on commit 815628b

Please sign in to comment.