mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
commit
e0f037919f
2 changed files with 3 additions and 7 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";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -160,12 +160,6 @@ static void initialize_block(
|
|||
block_register_events.push_back(BlockRegisterEvent {
|
||||
static_cast<uint8_t>(bits | 1), def.rt.id, {x, y, z}
|
||||
});
|
||||
|
||||
if (def.rt.funcsset.onblocktick) {
|
||||
block_register_events.push_back(BlockRegisterEvent {
|
||||
bits, def.rt.id, {x, y, z}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
template <class Storage>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue