mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
world.set_day_time fix
This commit is contained in:
parent
a4e366f0c1
commit
0b48a77e2d
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ static int l_world_get_day_time(lua_State* L) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int l_world_set_day_time(lua_State* L) {
|
static int l_world_set_day_time(lua_State* L) {
|
||||||
double value = scripting::level->world->daytime;
|
double value = lua_tonumber(L, 1);
|
||||||
scripting::level->world->daytime = fmod(value, 1.0);
|
scripting::level->world->daytime = fmod(value, 1.0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue