mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix generated item's script
This commit is contained in:
parent
3202a11590
commit
4df4209bc5
3 changed files with 9 additions and 5 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue