summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAuke Kok <auke-jan.h.kok@intel.com>2015-05-07 23:08:53 -0700
committerAuke Kok <auke-jan.h.kok@intel.com>2015-05-07 23:08:53 -0700
commitbcf27ebd99a3826982fd40da2981f7f459ee5205 (patch)
tree41d734ad364bcda30aa4ed0e6ccf7c91475ca1ae
parent50420edd7718ae49980584f3a094635815bb3f34 (diff)
Fix a few errors exposed by difficult setting.
-rw-r--r--corn.lua2
-rw-r--r--init.lua2
-rw-r--r--melon.lua2
-rw-r--r--polebean.lua4
-rw-r--r--potato.lua2
-rw-r--r--tomato.lua2
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,