Merge pull request #606 from MihailRis/fix-generated-item-tags
fix: generated item does not inherit block tags
This commit is contained in:
commit
17d339e373
@ -288,6 +288,7 @@ void ContentLoader::loadContent(const dv::value& root) {
|
|||||||
item.iconType = ItemIconType::BLOCK;
|
item.iconType = ItemIconType::BLOCK;
|
||||||
item.icon = def.name;
|
item.icon = def.name;
|
||||||
item.placingBlock = def.name;
|
item.placingBlock = def.name;
|
||||||
|
item.tags = def.tags;
|
||||||
|
|
||||||
for (uint j = 0; j < 4; j++) {
|
for (uint j = 0; j < 4; j++) {
|
||||||
item.emission[j] = def.emission[j];
|
item.emission[j] = def.emission[j];
|
||||||
|
|||||||
@ -19,4 +19,5 @@ void ItemDef::cloneTo(ItemDef& dst) {
|
|||||||
dst.modelName = modelName;
|
dst.modelName = modelName;
|
||||||
dst.uses = uses;
|
dst.uses = uses;
|
||||||
dst.usesDisplay = usesDisplay;
|
dst.usesDisplay = usesDisplay;
|
||||||
|
dst.tags = tags;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -155,6 +155,7 @@ void Block::cloneTo(Block& dst) {
|
|||||||
dst.tickInterval = tickInterval;
|
dst.tickInterval = tickInterval;
|
||||||
dst.overlayTexture = overlayTexture;
|
dst.overlayTexture = overlayTexture;
|
||||||
dst.translucent = translucent;
|
dst.translucent = translucent;
|
||||||
|
dst.tags = tags;
|
||||||
if (particles) {
|
if (particles) {
|
||||||
dst.particles = std::make_unique<ParticlesPreset>(*particles);
|
dst.particles = std::make_unique<ParticlesPreset>(*particles);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user