make decomposition require dirty nodes nearby.

decomposition will no longer happen unless the decomposing leaves are
touching a dirty node. thus, they can now be used for decoration in
non-dirty locations.
This commit is contained in:
trans_soup 2023-10-19 17:14:39 +02:00
parent 845e951d8d
commit 3fa17f8b68

View file

@ -73,7 +73,7 @@ blockgame.register_increasing_abm({
id = modname .. ":decompose",
label = "decompose leaves",
nodenames = {"group:leaves_decomposing"},
-- neighbors = {"group:dirty", "group:leaves_decomposing"},
neighbors = {"group:dirty"},
interval = 15,
chance = 10,
rate = function (pos, node, data)