diff options
Diffstat (limited to 'src/unittest/test_mapnode.cpp')
-rw-r--r-- | src/unittest/test_mapnode.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/unittest/test_mapnode.cpp b/src/unittest/test_mapnode.cpp index 365ee0c86..9a5c69bed 100644 --- a/src/unittest/test_mapnode.cpp +++ b/src/unittest/test_mapnode.cpp @@ -47,9 +47,10 @@ void TestMapNode::testNodeProperties(const NodeDefManager *nodedef) { MapNode n(CONTENT_AIR); + ContentLightingFlags f = nodedef->getLightingFlags(n); UASSERT(n.getContent() == CONTENT_AIR); - UASSERT(n.getLight(LIGHTBANK_DAY, nodedef) == 0); - UASSERT(n.getLight(LIGHTBANK_NIGHT, nodedef) == 0); + UASSERT(n.getLight(LIGHTBANK_DAY, f) == 0); + UASSERT(n.getLight(LIGHTBANK_NIGHT, f) == 0); // Transparency n.setContent(CONTENT_AIR); |