forgot this

This commit is contained in:
sfan5 2024-04-19 18:44:06 +02:00
parent b1d4bc9e46
commit 00e504b0a8
1 changed files with 10 additions and 0 deletions

View File

@ -294,6 +294,16 @@ void TestMapBlock::testLoad20(IGameDef *gamedef)
for (size_t i = 0; i < MapBlock::nodecount; ++i)
UASSERT(block.getData()[i].getContent() != CONTENT_IGNORE);
// metadata is also translated
auto *meta = block.m_node_metadata.get({11, 6, 3});
UASSERT(meta);
UASSERT(meta->contains("formspec"));
auto *inv = meta->getInventory();
UASSERT(inv);
auto *ilist = inv->getList("dst");
UASSERT(ilist);
UASSERTEQ(int, ilist->getSize(), 4);
}
static const u8 coded_mapblock_nonstd[] = {