diff --git a/mods/default/functions.lua b/mods/default/functions.lua index 20cfd3a..54f07a2 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -280,7 +280,7 @@ minetest.register_abm( -- dirt with grass becomes dirt if covered local name = minetest.get_node(above).name local partialblock = minetest.get_item_group(name, "path") ~= 0 or minetest.get_item_group(name, "slab") ~= 0 or minetest.get_item_group(name, "stair") ~= 0 local nodedef = minetest.registered_nodes[name] - if name ~= "ignore" and nodedef and (partialblock) or (not ((nodedef.sunlight_propagates or nodedef.paramtype == "light") and nodedef.liquidtype == "none")) then + if nodedef and (name ~= "ignore" and (partialblock) or (not ((nodedef.sunlight_propagates or nodedef.paramtype == "light") and nodedef.liquidtype == "none"))) then if node.name == "default:dirt_with_swamp_grass" then minetest.set_node(pos, {name = "default:swamp_dirt"}) else