1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Clouds API: change speed from 'y' to 'z', ColorSpecs in Lua docs (#6164)

This commit is contained in:
Ben Deutsch 2017-07-24 18:04:00 +02:00 committed by Loïc Blot
parent befc3bba3d
commit c50a57c070
2 changed files with 5 additions and 4 deletions

View file

@ -1766,7 +1766,7 @@ int ObjectRef::l_set_clouds(lua_State *L)
if (lua_istable(L, -1)) {
v2f new_speed;
new_speed.X = getfloatfield_default(L, -1, "x", 0);
new_speed.Y = getfloatfield_default(L, -1, "y", 0);
new_speed.Y = getfloatfield_default(L, -1, "z", 0);
cloud_params.speed = new_speed;
}
lua_pop(L, 1);