1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Dungeons: Do not remove nodes that have 'is_ground_content = false' (#8423)

Like randomwalk caves, preserve nodes that have 'is_ground_content = false',
to avoid dungeons that generate out beyond the edge of a mapchunk destroying
nodes added by mods in 'register_on_generated()'.

Issue discovered by, and original PR by, argyle77.
This commit is contained in:
Paramat 2019-03-26 03:56:57 +00:00 committed by GitHub
parent d0a1a29ab3
commit 5e7662ca16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View file

@ -6040,7 +6040,11 @@ Used by `minetest.register_node`.
place_param2 = nil, -- Force value for param2 when player places node
is_ground_content = true,
-- If false, the cave generator will not carve through this node
-- If false, the cave generator and dungeon generator will not carve
-- through this node.
-- Specifically, this stops mod-added nodes being removed by caves and
-- dungeons when those generate in a neighbor mapchunk and extend out
-- beyond the edge of that mapchunk.
sunlight_propagates = false,
-- If true, sunlight will go infinitely through this node