From 2ed9e9f0bbfb165af61231918d0c35baf695e3b7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 12 Jan 2017 21:01:01 +0100 Subject: [PATCH] Fix crash when saplings grow --- mods/default/functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/default/functions.lua b/mods/default/functions.lua index f3e2911e9..16c1deb04 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -615,7 +615,7 @@ minetest.register_abm({ action = function(pos) local light = minetest.get_node_light(pos) local soilnode = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}) - local soiltype = mietest.get_item_group(soilnode.name, "soil_sapling") + local soiltype = minetest.get_item_group(soilnode.name, "soil_sapling") if soiltype >= 1 and light and light >= 9 then minetest.add_node(pos, {name="air"}) generate_tree(pos, "default:tree", "default:leaves", 1) @@ -632,7 +632,7 @@ minetest.register_abm({ action = function(pos) local light = minetest.get_node_light(pos) local soilnode = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}) - local soiltype = mietest.get_item_group(soilnode.name, "soil_sapling") + local soiltype = minetest.get_item_group(soilnode.name, "soil_sapling") if soiltype == 2 and light and light >= 9 then minetest.add_node(pos, {name="air"}) generate_tree(pos, "default:jungletree", "default:jungleleaves", 2)