move weather back to gfx & add world:client/environment.json file

This commit is contained in:
MihailRis
2025-03-09 22:50:45 +03:00
parent 7a86cbdd60
commit db620010a3
11 changed files with 68 additions and 37 deletions
+3 -2
View File
@@ -1,4 +1,5 @@
#include "api_lua.hpp"
#include "libhud.hpp"
#include "world/Level.hpp"
#include "world/World.hpp"
@@ -8,7 +9,7 @@ static Weather& require_weather() {
if (level == nullptr) {
throw std::runtime_error("world is not open");
}
return level->getWorld()->getInfo().weather;
return renderer->getWeather();
}
static int l_change(lua::State* L) {