fix: block fields not inherited

This commit is contained in:
MihailRis 2026-09-09 00:16:23 +03:00
parent 349e61a3f9
commit 7d0f714cf2

View file

@ -167,6 +167,9 @@ void Block::cloneTo(Block& dst) {
dst.translucent = translucent;
dst.explictlySolid = explictlySolid;
dst.tags = tags;
if (dataStruct) {
dst.dataStruct = std::make_unique<data::StructLayout>(*dataStruct);
}
if (particles) {
dst.particles = std::make_unique<ParticlesPreset>(*particles);
}