This commit is contained in:
A-lex-Ra 2024-01-14 21:32:06 +06:00
commit ba4e10c2c8
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
# Run with compiled executable file:
[Download v0.17](https://github.com/MihailRis/VoxelEngine-Cpp/releases/tag/v17)
[Windows 64 bit](https://github.com/MihailRis/VoxelEngine-Cpp/releases/download/v17/voxelengine_v17_win64.zip)
[Linux x86_64 (.AppImage)](https://github.com/MihailRis/VoxelEngine-Cpp/releases/download/v17/VoxelEngine-0.17-x86_64.AppImage)
# Controls:

View File

@ -29,7 +29,7 @@ static int l_world_get_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);
return 0;
}