diff options
Diffstat (limited to 'melon.lua')
-rw-r--r-- | melon.lua | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -140,8 +140,8 @@ minetest.register_node("crops:melon", { minetest.register_abm({ nodenames = { "crops:melon_plant_1", "crops:melon_plant_2", "crops:melon_plant_3","crops:melon_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 @@ -161,8 +161,8 @@ minetest.register_abm({ minetest.register_abm({ nodenames = { "crops:melon_plant_5" }, 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 @@ -207,7 +207,7 @@ minetest.register_abm({ -- minetest.register_abm({ nodenames = { "crops:melon_plant_5_attached" }, - interval = crops.interval, + interval = crops.settings.interval, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) for face = 1, 4 do |