fix generated item's script

This commit is contained in:
MihailRis 2025-12-02 18:21:52 +03:00
parent 3202a11590
commit 4df4209bc5
3 changed files with 9 additions and 5 deletions

View file

@ -289,6 +289,9 @@ void ContentLoader::loadContent(const dv::value& root) {
item.icon = def.name;
item.placingBlock = def.name;
item.tags = def.tags;
item.scriptFile = def.name + BLOCK_ITEM_SUFFIX + ".lua";
logger.info() << "scriptFile: " << item.scriptFile;
for (uint j = 0; j < 4; j++) {
item.emission[j] = def.emission[j];