diff options
Diffstat (limited to 'tomato.lua')
-rw-r--r-- | tomato.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |