refactor: fix modname being hard-coded into string.

This commit is contained in:
trans_soup 2023-10-17 09:48:48 +02:00
parent 20b2dfa0c7
commit 8dccef9389

View file

@ -10,7 +10,7 @@ local leaves_decomposing = modname .. ":leaves_decomposing"
-- END OF NODE NAMES
blockgame.register_increasing_abm({
id = "bg_tree:begin_decompose",
id = modname .. ":begin_decompose",
label = "decompose leaves",
nodenames = {leaves},
neighbors = {"group:dirty"},
@ -28,7 +28,7 @@ blockgame.register_increasing_abm({
})
blockgame.register_increasing_abm({
id = "bg_tree:decompose",
id = modname .. ":decompose",
label = "decompose leaves",
nodenames = {leaves_decomposing},
neighbors = {"group:dirty"},