feat: new block custom models implementation (WIP)
This commit is contained in:
@@ -114,12 +114,8 @@ 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.textureFaces[i] = textureFaces[i];
|
||||
dst.textureFaces[i] = textureFaces[i];
|
||||
}
|
||||
dst.modelTextures = modelTextures;
|
||||
dst.modelBoxes = modelBoxes;
|
||||
dst.modelExtraPoints = modelExtraPoints;
|
||||
dst.modelUVs = modelUVs;
|
||||
dst.material = material;
|
||||
std::copy(&emission[0], &emission[3], dst.emission);
|
||||
dst.size = size;
|
||||
@@ -143,7 +139,10 @@ void Block::cloneTo(Block& dst) {
|
||||
dst.inventorySize = inventorySize;
|
||||
dst.tickInterval = tickInterval;
|
||||
dst.overlayTexture = overlayTexture;
|
||||
dst.particles = std::make_unique<ParticlesPreset>(*particles);
|
||||
if (particles) {
|
||||
dst.particles = std::make_unique<ParticlesPreset>(*particles);
|
||||
}
|
||||
dst.customModelRaw = customModelRaw;
|
||||
}
|
||||
|
||||
static std::set<std::string, std::less<>> RESERVED_BLOCK_FIELDS {
|
||||
|
||||
Reference in New Issue
Block a user