diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2015-11-23 09:59:18 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2015-11-23 09:59:18 +0000 |
commit | e13c78da6371db4ac1bdaa4b3f2beeaaf841ba89 (patch) | |
tree | 0fb4848cfcb6fd65de1319bc66fafd103a729262 /water.lua | |
parent | 210646475132d8236928aaf8da43e0bcb2dbb448 (diff) |
Fixed farming compatibility with ethereal grass blocks
Diffstat (limited to 'water.lua')
-rw-r--r-- | water.lua | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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, }) |