From c4a70e45ce95f75e6c7810fbd0d5aa49b865185a Mon Sep 17 00:00:00 2001 From: trans_soup <> Date: Thu, 19 Oct 2023 13:12:10 +0200 Subject: [PATCH] decomposition fix. make decomposing leaves no longer traverse nodes that don't affect their decomposition rate, when determining said rate. this means that they're only affected by nodes that either touch them directly, or touch nodes that affect them. --- mods/bg_tree/decompose.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/bg_tree/decompose.lua b/mods/bg_tree/decompose.lua index b5f1775..7769ae2 100644 --- a/mods/bg_tree/decompose.lua +++ b/mods/bg_tree/decompose.lua @@ -64,6 +64,8 @@ blockgame.register_increasing_abm({ score = score + gain return true end + + return false end, 4) return data.value + score