Advertisement
Guest User

Untitled

a guest
Sep 4th, 2022
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp
  2. index 9bd1df1ab..3b2f3ef72 100644
  3. --- a/src/client/content_cao.cpp
  4. +++ b/src/client/content_cao.cpp
  5. @@ -881,7 +881,7 @@ void GenericCAO::updateLight(u32 day_night_ratio)
  6.         if (!pos_ok)
  7.                 light_at_pos = LIGHT_SUN;
  8.  
  9. -       video::SColor light = encode_light(light_at_pos, m_prop.glow);
  10. +       video::SColor light = encode_light(light_at_pos, decode_light(m_prop.glow));
  11.         if (!m_enable_shaders)
  12.                 final_color_blend(&light, light_at_pos, day_night_ratio);
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement