From bacd6374d19f180ee68e8c25a9dd7fefe2a059fd Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Wed, 17 Jun 2020 20:32:25 +0200 Subject: [PATCH] Ethereal support added (issue #8) --- iron_age/charcoalpile.lua | 6 +++++- items/registered_nodes.lua | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/iron_age/charcoalpile.lua b/iron_age/charcoalpile.lua index 7bad741..8354107 100644 --- a/iron_age/charcoalpile.lua +++ b/iron_age/charcoalpile.lua @@ -37,7 +37,11 @@ end local function make_dirt_with_dry_grass(pos) local pos1 = {x=pos.x-2, y=pos.y+3, z=pos.z-2} local pos2 = {x=pos.x+2, y=pos.y+3, z=pos.z+2} - for _,p in ipairs(minetest.find_nodes_in_area(pos1, pos2, "default:dirt_with_grass")) do + for _,p in ipairs(minetest.find_nodes_in_area(pos1, pos2, { + "default:dirt_with_grass", + "default:dirt_with_coniferous_litter", + "default:dirt_with_rainforest_litter", + })) do minetest.swap_node(p, {name = "default:dirt_with_dry_grass"}) end if minetest.global_exists("ethereal") then diff --git a/items/registered_nodes.lua b/items/registered_nodes.lua index 3e830e7..8f6d156 100644 --- a/items/registered_nodes.lua +++ b/items/registered_nodes.lua @@ -33,7 +33,6 @@ minetest.register_on_mods_loaded(function() ndef.drawtype == "normal" and ndef.groups.crumbly and ndef.groups.crumbly > 0 then techage.aAnyKindOfDirtBlocks[#techage.aAnyKindOfDirtBlocks + 1] = name - print(name) end end end)