mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
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
3 changed files with 3 additions and 0 deletions
|
|
@ -288,6 +288,7 @@ void ContentLoader::loadContent(const dv::value& root) {
|
|||
item.iconType = ItemIconType::BLOCK;
|
||||
item.icon = def.name;
|
||||
item.placingBlock = def.name;
|
||||
item.tags = def.tags;
|
||||
|
||||
for (uint j = 0; j < 4; j++) {
|
||||
item.emission[j] = def.emission[j];
|
||||
|
|
|
|||
|
|
@ -19,4 +19,5 @@ void ItemDef::cloneTo(ItemDef& dst) {
|
|||
dst.modelName = modelName;
|
||||
dst.uses = uses;
|
||||
dst.usesDisplay = usesDisplay;
|
||||
dst.tags = tags;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@ void Block::cloneTo(Block& dst) {
|
|||
dst.tickInterval = tickInterval;
|
||||
dst.overlayTexture = overlayTexture;
|
||||
dst.translucent = translucent;
|
||||
dst.tags = tags;
|
||||
if (particles) {
|
||||
dst.particles = std::make_unique<ParticlesPreset>(*particles);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue