From 9676364c1fe5fe5eae69c55e7d7a45392decfb2d Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Sun, 9 Oct 2022 10:50:26 -0400 Subject: Optimize lighting calculation (#12797) --- src/unittest/test_mapnode.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/unittest/test_mapnode.cpp') 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); -- cgit v1.2.3