summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-06-17 21:20:05 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-06-17 21:20:05 +0100
commitf14240d3343cbe4fd05404b6e1f1fa018defea00 (patch)
treec2d7892a88b146f35a0bbf9c2a814217663af650
parent8917c9db370df37866e5a0efffd80118e89bccc4 (diff)
healing tree's grow on any soil
-rw-r--r--sapling.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/sapling.lua b/sapling.lua
index b8e3732..0f44768 100644
--- a/sapling.lua
+++ b/sapling.lua
@@ -160,7 +160,8 @@ ethereal.grow_sapling = function (pos, node)
-- Check if Ethereal Sapling is growing on correct substrate
if node.name == "ethereal:yellow_tree_sapling"
- and under == "default:dirt_with_snow" then
+-- and under == "default:dirt_with_snow" then
+ and minetest.get_item_group(under, "soil") > 0 then
ethereal.grow_yellow_tree(pos)
elseif node.name == "ethereal:big_tree_sapling"
@@ -213,8 +214,8 @@ end
minetest.register_abm({
label = "Ethereal grow sapling",
nodenames = {"group:ethereal_sapling"},
- interval = 10,
- chance = 50,
+ interval = 1,--10,
+ chance = 1,--50,
catch_up = false,
action = function(pos, node)