Don't store removed components in multiple places (#11091)

This commit is contained in:
Jake Potrebic
2024-07-16 16:39:57 -07:00
parent 2a8b311dfb
commit 412a28a37a
3 changed files with 4 additions and 56 deletions

View File

@@ -112,7 +112,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // Paper end
+
for (Map.Entry<DataComponentType<?>, Optional<?>> e : this.unhandledTags.build().entrySet()) {
e.getValue().ifPresentOrElse((value) -> {
e.getValue().ifPresent((value) -> {
itemTag.builder.set((DataComponentType) e.getKey(), value);
@@ -0,0 +0,0 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable, BlockDataMeta {