summaryrefslogtreecommitdiff
path: root/tomato.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tomato.lua')
-rw-r--r--tomato.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tomato.lua b/tomato.lua
index 72b3638..4fdb216 100644
--- a/tomato.lua
+++ b/tomato.lua
@@ -123,8 +123,8 @@ minetest.register_craft({
minetest.register_abm({
nodenames = { "crops:tomato_plant_1", "crops:tomato_plant_2", "crops:tomato_plant_3" },
neighbors = { "group:soil" },
- interval = crops.interval,
- chance = crops.chance,
+ interval = crops.settings.interval,
+ chance = crops.settings.chance,
action = function(pos, node, active_object_count, active_object_count_wider)
if not crops.can_grow(pos) then
return
@@ -143,8 +143,8 @@ minetest.register_abm({
minetest.register_abm({
nodenames = { "crops:tomato_plant_4" },
neighbors = { "group:soil" },
- interval = crops.interval,
- chance = crops.chance,
+ interval = crops.settings.interval,
+ chance = crops.settings.chance,
action = function(pos, node, active_object_count, active_object_count_wider)
if not crops.can_grow(pos) then
return