mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
update Block::cloneTo
This commit is contained in:
parent
e451a4f3a3
commit
a95afd777d
2 changed files with 2 additions and 5 deletions
|
|
@ -125,9 +125,6 @@ Block::Block(std::string name, const std::string& texture)
|
|||
|
||||
void Block::cloneTo(Block& dst) {
|
||||
dst.caption = caption;
|
||||
for (int i = 0; i < 6; i++) {
|
||||
dst.defaults = defaults;
|
||||
}
|
||||
dst.defaults = defaults;
|
||||
if (variants) {
|
||||
dst.variants = std::make_unique<Variants>(*variants);
|
||||
|
|
@ -155,6 +152,7 @@ void Block::cloneTo(Block& dst) {
|
|||
dst.tickInterval = tickInterval;
|
||||
dst.overlayTexture = overlayTexture;
|
||||
dst.translucent = translucent;
|
||||
dst.explictlySolid = explictlySolid;
|
||||
dst.tags = tags;
|
||||
if (particles) {
|
||||
dst.particles = std::make_unique<ParticlesPreset>(*particles);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue