From a4e366f0c181d22f90fe919f95152c75d644317e Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 14 Jan 2024 16:36:28 +0300 Subject: [PATCH 1/2] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: From 0b48a77e2d1c38f0f8b732668a3bbecbfcabd6ce Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 14 Jan 2024 17:37:42 +0300 Subject: [PATCH 2/2] world.set_day_time fix --- src/logic/scripting/api_lua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }