summaryrefslogtreecommitdiff
path: root/water.lua
diff options
context:
space:
mode:
Diffstat (limited to 'water.lua')
-rw-r--r--water.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/water.lua b/water.lua
index 72d8875..e50fb64 100644
--- a/water.lua
+++ b/water.lua
@@ -103,13 +103,17 @@ minetest.register_abm({
-- If Water Source near Dry Dirt, change to normal Dirt
minetest.register_abm({
- nodenames = {"ethereal:dry_dirt"},
+ nodenames = {"ethereal:dry_dirt", "default:dirt_with_dry_grass"},
neighbors = {"group:water"},
interval = 15,
chance = 2,
catch_up = false,
action = function(pos, node, active_object_count, active_object_count_wider)
- minetest.set_node(pos, {name = "default:dirt"})
+ if node == "ethereal:dry_dirt" then
+ minetest.set_node(pos, {name = "default:dirt"})
+ else
+ minetest.set_node(pos, {name = "ethereal:green_dirt"})
+ end
end,
})