1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-12-13 02:35:26 +01:00

get_sky(): return fog_color as well

This commit is contained in:
Zughy
2025-12-08 23:19:11 +01:00
committed by GitHub
parent cf696239e4
commit 98c6f786f8

View File

@@ -2297,6 +2297,8 @@ int ObjectRef::l_get_sky(lua_State *L)
lua_setfield(L, -2, "fog_distance");
lua_pushnumber(L, skybox_params.fog_start >= 0 ? skybox_params.fog_start : -1.0f);
lua_setfield(L, -2, "fog_start");
push_ARGB8(L, skybox_params.fog_color);
lua_setfield(L, -2, "fog_color");
lua_setfield(L, -2, "fog");
return 1;