fix overriden content units scripts overriding
This commit is contained in:
parent
b36d8d5852
commit
4893705ff4
@ -247,5 +247,7 @@ template<> void ContentUnitLoader<Block>::loadUnit(
|
||||
if (def.hidden && def.pickingItem == def.name + BLOCK_ITEM_SUFFIX) {
|
||||
def.pickingItem = CORE_EMPTY;
|
||||
}
|
||||
if (root.has("script-name") || def.scriptFile.empty()) {
|
||||
def.scriptFile = pack.id + ":scripts/" + def.scriptName + ".lua";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user