add 'abstract' block property

This commit is contained in:
MihailRis 2026-11-21 19:45:33 +03:00
parent f0a407c20a
commit 33180fc648
4 changed files with 6 additions and 2 deletions

View file

@ -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