summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--corn.lua2
-rw-r--r--init.lua8
2 files changed, 5 insertions, 5 deletions
diff --git a/corn.lua b/corn.lua
index d68fb4a..5108178 100644
--- a/corn.lua
+++ b/corn.lua
@@ -332,7 +332,7 @@ local properties = {
soak = 60,
soak_damage = 75,
wither = 10,
- wither_damage = 1,
+ wither_damage = 5,
doublesize = true,
}
diff --git a/init.lua b/init.lua
index ea5ae04..fbef295 100644
--- a/init.lua
+++ b/init.lua
@@ -335,16 +335,16 @@ minetest.register_abm({
meta:set_int("crops_water", water)
end
- if water < plant.properties.wither_damage then
+ if water <= plant.properties.wither_damage then
crops.particles(pos, 0)
damage = damage + math.random(crops.settings.damage_tick_min, crops.settings.damage_tick_max)
- elseif water < plant.properties.wither then
+ elseif water <= plant.properties.wither then
crops.particles(pos, 0)
return
- elseif water > plant.properties.soak_damage then
+ elseif water >= plant.properties.soak_damage then
crops.particles(pos, 1)
damage = damage + math.random(crops.settings.damage_tick_min, crops.settings.damage_tick_max)
- elseif water > plant.properties.soak then
+ elseif water >= plant.properties.soak then
crops.particles(pos, 1)
return
end