diff --git a/README.md b/README.md index f51329ed..2c84ca96 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/src/logic/scripting/api_lua.cpp b/src/logic/scripting/api_lua.cpp index a5f0a7b2..f2450c9d 100644 --- a/src/logic/scripting/api_lua.cpp +++ b/src/logic/scripting/api_lua.cpp @@ -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; }