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:
parent
29490cb0f7
commit
fc6bef7de6
3 changed files with 52 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue