13
0
geforkt von Mirrors/Paper

reset meta block state on BlockStateMeta#setBlockState

Dieser Commit ist enthalten in:
Jake Potrebic 2024-05-25 22:36:55 -07:00
Ursprung 476103747a
Commit 85894149b3

Datei anzeigen

@ -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
}