mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Allow to set maximum star opacity at daytime (#11663)
This commit is contained in:
parent
b095dc4f2b
commit
142928e944
9 changed files with 24 additions and 4 deletions
|
@ -2084,6 +2084,9 @@ int ObjectRef::l_set_stars(lua_State *L)
|
|||
"scale", star_params.scale);
|
||||
}
|
||||
|
||||
star_params.day_opacity = getfloatfield_default(L, 2,
|
||||
"day_opacity", star_params.day_opacity);
|
||||
|
||||
getServer(L)->setStars(player, star_params);
|
||||
return 0;
|
||||
}
|
||||
|
@ -2108,6 +2111,8 @@ int ObjectRef::l_get_stars(lua_State *L)
|
|||
lua_setfield(L, -2, "star_color");
|
||||
lua_pushnumber(L, star_params.scale);
|
||||
lua_setfield(L, -2, "scale");
|
||||
lua_pushnumber(L, star_params.day_opacity);
|
||||
lua_setfield(L, -2, "day_opacity");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue