Merge pull request #840 from MihailRis/environments

environments (part 1)
This commit is contained in:
MihailRis 2026-08-02 19:11:03 +03:00 • committed by GitHub
commit 8b520a3787
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 601 additions and 311 deletions

View file

@ -125,7 +125,7 @@ static int l_is_night(lua::State* L) {
}
static int l_get_generator(lua::State* L) {
return lua::pushstring(L, require_world_info().generator);
return lua::pushstring(L, require_level().environment.generator);
}
static int l_get_chunk_data(lua::State* L) {