mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +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) {
|
if (def.hidden && def.pickingItem == def.name + BLOCK_ITEM_SUFFIX) {
|
||||||
def.pickingItem = CORE_EMPTY;
|
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 {
|
block_register_events.push_back(BlockRegisterEvent {
|
||||||
static_cast<uint8_t>(bits | 1), def.rt.id, {x, y, z}
|
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>
|
template <class Storage>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue