mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-22 18:39:46 +00:00
add 'abstract' block property
This commit is contained in:
parent
f0a407c20a
commit
33180fc648
4 changed files with 6 additions and 2 deletions
|
|
@ -288,7 +288,7 @@ void ContentLoader::loadContent(const dv::value& root) {
|
|||
|
||||
ContentUnitLoader<Block>(*pack, builder.blocks, "blocks",
|
||||
[this](const Block& def) {
|
||||
if (!def.hidden) {
|
||||
if (!def.abstract || !def.hidden) {
|
||||
bool created;
|
||||
auto& item = builder.items.create(
|
||||
def.name + BLOCK_ITEM_SUFFIX, &created
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue