summaryrefslogtreecommitdiff
path: root/water.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2015-11-23 09:59:18 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2015-11-23 09:59:18 +0000
commite13c78da6371db4ac1bdaa4b3f2beeaaf841ba89 (patch)
tree0fb4848cfcb6fd65de1319bc66fafd103a729262 /water.lua
parent210646475132d8236928aaf8da43e0bcb2dbb448 (diff)
Fixed farming compatibility with ethereal grass blocks
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,
})