mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Set oerkki1 to not be drawn in completely dark
This commit is contained in:
parent
041b5e5479
commit
42fb1ba676
1 changed files with 8 additions and 0 deletions
|
@ -632,6 +632,14 @@ void Oerkki1CAO::updateLight(u8 light_at_pos)
|
|||
{
|
||||
if(m_node == NULL)
|
||||
return;
|
||||
|
||||
if(light_at_pos <= 2)
|
||||
{
|
||||
m_node->setVisible(false);
|
||||
return;
|
||||
}
|
||||
|
||||
m_node->setVisible(true);
|
||||
|
||||
u8 li = decode_light(light_at_pos);
|
||||
video::SColor color(255,li,li,li);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue