From 179e113acdb6d160433c8da402c4a14c7a3be256 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Thu, 18 Aug 2022 09:27:07 -0600 Subject: [PATCH] fix dirt spreads https://github.com/FaceDeer/dfcaverns/issues/35 --- df_primordial_items/fungal_nodes.lua | 4 ++-- df_primordial_items/jungle_nodes.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/df_primordial_items/fungal_nodes.lua b/df_primordial_items/fungal_nodes.lua index 36eded9..a15f9a5 100644 --- a/df_primordial_items/fungal_nodes.lua +++ b/df_primordial_items/fungal_nodes.lua @@ -151,12 +151,12 @@ minetest.register_node("df_primordial_items:dirt_with_mycelium", { minetest.register_abm{ label = "df_primordial_items:dirt_with_mycelium_spread", nodenames = {df_dependencies.node_name_dirt}, - neighbors = {"df_mapitems:dirt_with_mycelium"}, + neighbors = {"df_primordial_items:dirt_with_mycelium"}, interval = 60, chance = 50, catch_up = true, action = function(pos) - minetest.swap_node(pos, {name="df_mapitems:dirt_with_mycelium"}) + minetest.swap_node(pos, {name="df_primordial_items:dirt_with_mycelium"}) end, } diff --git a/df_primordial_items/jungle_nodes.lua b/df_primordial_items/jungle_nodes.lua index 17df763..bc6c998 100644 --- a/df_primordial_items/jungle_nodes.lua +++ b/df_primordial_items/jungle_nodes.lua @@ -306,14 +306,14 @@ minetest.register_node("df_primordial_items:dirt_with_jungle_grass", { minetest.register_abm{ label = "df_primordial_items:jungle_grass_spread", nodenames = {df_dependencies.node_name_dirt}, - neighbors = {"df_mapitems:dirt_with_jungle_grass"}, + neighbors = {"df_primordial_items:dirt_with_jungle_grass"}, interval = 60, chance = 50, catch_up = true, action = function(pos) local above_def = minetest.registered_nodes[minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name] if above_def and (above_def.buildable_to == true or above_def.walkable == false) then - minetest.swap_node(pos, {name="df_mapitems:dirt_with_jungle_grass"}) + minetest.swap_node(pos, {name="df_primordial_items:dirt_with_jungle_grass"}) end end, }