mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix overriden content units scripts overriding
This commit is contained in:
parent
4a880177da
commit
719ba6e17a
1 changed files with 3 additions and 1 deletions
|
|
@ -247,5 +247,7 @@ template<> void ContentUnitLoader<Block>::loadUnit(
|
|||
if (def.hidden && def.pickingItem == def.name + BLOCK_ITEM_SUFFIX) {
|
||||
def.pickingItem = CORE_EMPTY;
|
||||
}
|
||||
def.scriptFile = pack.id + ":scripts/" + def.scriptName + ".lua";
|
||||
if (root.has("script-name") || def.scriptFile.empty()) {
|
||||
def.scriptFile = pack.id + ":scripts/" + def.scriptName + ".lua";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue