Merge branch 'main' of https://github.com/MihailRis/VoxelEngine-Cpp
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# Run with compiled executable file:
|
# 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:
|
# Controls:
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user