summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-11-27 19:10:39 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-11-27 19:10:39 +0000
commit7a5542d3633e42016b587a81f6254837df95b309 (patch)
treea8961dd682db58ce680f7c4e8cddf956964b73ba
parent8d372d293f7fb69819647e009d4b8bfcd982e3fc (diff)
Fix bonemeal ethereal_sapling bug
-rw-r--r--bonemeal.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/bonemeal.lua b/bonemeal.lua
index d5b3ff0..e666271 100644
--- a/bonemeal.lua
+++ b/bonemeal.lua
@@ -125,7 +125,8 @@ local function growth(pointed_thing)
})
-- 50/50 chance of growing a sapling
- if minetest.get_item_group(node.name, "sapling") > 0 then
+ if minetest.get_item_group(node.name, "sapling") > 0
+ or minetest.get_item_group(node.name, "ethereal_sapling") > 0 then
if math.random(1, 2) == 1 then
return