mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
Merge branch 'main' of https://github.com/MihailRis/VoxelEngine-Cpp
This commit is contained in:
commit
ba4e10c2c8
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue