mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Merge pull request #970 from MihailRis/fix-block-properties-inheritance
fix: block fields not inherited
This commit is contained in:
commit
bb6bd27b94
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue