From 85894149b3651ecd5895c404584b5a74bf8fa4d9 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Sat, 25 May 2024 22:36:55 -0700 Subject: [PATCH] reset meta block state on BlockStateMeta#setBlockState --- patches/server/General-ItemMeta-fixes.patch | 3 +++ 1 file changed, 3 insertions(+) diff --git a/patches/server/General-ItemMeta-fixes.patch b/patches/server/General-ItemMeta-fixes.patch index 9f4479987..0a86251af 100644 --- a/patches/server/General-ItemMeta-fixes.patch +++ b/patches/server/General-ItemMeta-fixes.patch @@ -427,6 +427,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + patchedMap.setAll(map); + final DataComponentPatch patch = patchedMap.asPatch(); + this.updateFromPatch(patch, null); ++ // we have to reset the fields because this should be like a "new" block entity is being used ++ this.blockEntityTag = CustomData.EMPTY; ++ this.components = DataComponentMap.EMPTY; + this.updateBlockState(patch); + // Paper end }