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/script/lua_api/l_env.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/lua_api/l_env.cpp') diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp index 8f2dc0cb4..1956fb948 100644 --- a/src/script/lua_api/l_env.cpp +++ b/src/script/lua_api/l_env.cpp @@ -379,7 +379,7 @@ int ModApiEnvMod::l_get_node_light(lua_State *L) MapNode n = env->getMap().getNode(pos, &is_position_ok); if (is_position_ok) { const NodeDefManager *ndef = env->getGameDef()->ndef(); - lua_pushinteger(L, n.getLightBlend(dnr, ndef)); + lua_pushinteger(L, n.getLightBlend(dnr, ndef->getLightingFlags(n))); } else { lua_pushnil(L); } -- cgit v1.2.3