From bcf27ebd99a3826982fd40da2981f7f459ee5205 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Thu, 7 May 2015 23:08:53 -0700 Subject: Fix a few errors exposed by difficult setting. --- corn.lua | 2 +- init.lua | 2 +- melon.lua | 2 +- polebean.lua | 4 ++-- potato.lua | 2 +- tomato.lua | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/corn.lua b/corn.lua index 8dd04ac..1ea5a10 100644 --- a/corn.lua +++ b/corn.lua @@ -325,7 +325,7 @@ crops.corn_die = function(pos) end local properties = { - wither = crops.corn_die, + die = crops.corn_die, waterstart = 40, wateruse = 1, night = 5, diff --git a/init.lua b/init.lua index 43b2f9f..f9400ed 100644 --- a/init.lua +++ b/init.lua @@ -348,7 +348,7 @@ minetest.register_abm({ -- is it dead? if damage >= 100 then - plant.properties.wither(pos) + plant.properties.die(pos) end end }) diff --git a/melon.lua b/melon.lua index b63d56e..23ea5e5 100644 --- a/melon.lua +++ b/melon.lua @@ -225,7 +225,7 @@ crops.melon_die = function(pos) end local properties = { - wither = crops.melon_die, + die = crops.melon_die, waterstart = 20, wateruse = 1, night = 5, diff --git a/polebean.lua b/polebean.lua index 11350cf..587f04f 100644 --- a/polebean.lua +++ b/polebean.lua @@ -276,13 +276,13 @@ minetest.register_abm({ }) crops.beanpole_die = function(pos) - minetest.set_node(pos, { name = "crops:beanpole_base_6" }) + minetest.set_node(pos, { name = "crops:beanpole_plant_base_6" }) local above = {x = pos.x, y = pos.y + 1, z = pos.z} minetest.set_node(above, { name = "crops:beanpole_plant_top_4" }) end local properties = { - wither = crops.beanpole_die, + die = crops.beanpole_die, waterstart = 30, wateruse = 1, night = 5, diff --git a/potato.lua b/potato.lua index edf6672..cb2108e 100644 --- a/potato.lua +++ b/potato.lua @@ -172,7 +172,7 @@ crops.potato_die = function(pos) end local properties = { - wither = crops.potato_die, + die = crops.potato_die, waterstart = 30, wateruse = 1, night = 5, diff --git a/tomato.lua b/tomato.lua index 4fdb216..5234152 100644 --- a/tomato.lua +++ b/tomato.lua @@ -173,7 +173,7 @@ crops.tomato_die = function(pos) end local properties = { - wither = crops.tomato_die, + die = crops.tomato_die, waterstart = 19, wateruse = 1, night = 5, -- cgit v1.2.3