mirror of
https://github.com/minetest/minetest.git
synced 2025-02-18 19:03:46 +01:00
Set oerkki1 to not be drawn in completely dark
This commit is contained in:
@ -633,6 +633,14 @@ void Oerkki1CAO::updateLight(u8 light_at_pos)
|
|||||||
if(m_node == NULL)
|
if(m_node == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if(light_at_pos <= 2)
|
||||||
|
{
|
||||||
|
m_node->setVisible(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_node->setVisible(true);
|
||||||
|
|
||||||
u8 li = decode_light(light_at_pos);
|
u8 li = decode_light(light_at_pos);
|
||||||
video::SColor color(255,li,li,li);
|
video::SColor color(255,li,li,li);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user