From 171a67ebf2be68ce08c706c436cb579bd2fa0ad6 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 8 Dec 2015 14:47:22 +0000 Subject: Code tweak and tidy, fixed rhubarb spawning --- soil.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'soil.lua') diff --git a/soil.lua b/soil.lua index df87eda..e748d5c 100644 --- a/soil.lua +++ b/soil.lua @@ -26,6 +26,7 @@ minetest.register_abm({ interval = 15, chance = 4, catch_up = false, + action = function(pos, node) pos.y = pos.y + 1 @@ -52,8 +53,10 @@ minetest.register_abm({ if node.name == "farming:soil" then minetest.set_node(pos, {name = "farming:soil_wet"}) end + elseif node.name == "farming:soil_wet" then minetest.set_node(pos, {name = "farming:soil"}) + elseif node.name == "farming:soil" then minetest.set_node(pos, {name = "default:dirt"}) end -- cgit v1.2.3