Merge pull request #970 from MihailRis/fix-block-properties-inheritance

fix: block fields not inherited
This commit is contained in:
MihailRis 2026-09-09 00:59:14 +03:00 • committed by GitHub
commit bb6bd27b94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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);
}