From 65df8bbd7b1a17c57b50eef3ea2c399deaeb7fcc Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 9 Oct 2019 14:40:29 +0100 Subject: [PATCH] fixed water abm for dry dirt, added 5.1 dry dirt node checks --- README.md | 1 + water.lua | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d421849..617d7db 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6) - Bamboo grows in higher elevation while sakura grows in lower - Added sakura wood, stairs, fence, gate and door - Added 5.0 checks to add new biomes and decorations + - Fixed water abm for dry dirt and added check for minetest 5.1 dry dirt also ### 1.25 diff --git a/water.lua b/water.lua index f500d1c..77168a4 100644 --- a/water.lua +++ b/water.lua @@ -108,14 +108,18 @@ minetest.register_abm({ -- If Water Source near Dry Dirt, change to normal Dirt minetest.register_abm({ label = "Ethereal wet dry dirt", - nodenames = {"ethereal:dry_dirt", "default:dirt_with_dry_grass"}, + nodenames = { + "ethereal:dry_dirt", "default:dirt_with_dry_grass", + "default:dry_dirt", "default:dry_dirt_with_dry_grass" + }, neighbors = {"group:water"}, interval = 15, chance = 2, catch_up = false, action = function(pos, node) - if node == "ethereal:dry_dirt" then + if node.name == "ethereal:dry_dirt" + or node.name == "default:dry_dirt" then minetest.swap_node(pos, {name = "default:dirt"}) else minetest.swap_node(pos, {name = "default:dirt_with_grass"})