1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Extend core.generate_decorations to generate biomes respecting the biome map (#16397)

Large structures which are generated in on_generated callbacks
independently by Lua cannot influence decoration placement. This
change enables such a callback to assume responsibility for generating
decorations itself, presumably after structures are placed, by
disabling decorations in mg_flags and executing
core.generate_decorations.

---------

Co-authored-by: Po Lu <luangruo@yahoo.com>
This commit is contained in:
Cora de la Mouche 2025-09-20 13:44:19 +02:00 committed by GitHub
parent 29490cb0f7
commit fc6bef7de6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 52 additions and 15 deletions

View file

@ -50,6 +50,7 @@ core.features = {
object_guids = true,
on_timer_four_args = true,
particlespawner_exclude_player = true,
generate_decorations_biomes = true,
}
function core.has_feature(arg)