always advance growth stage by 1 on bonemeal

This commit is contained in:
cora 2022-10-26 23:40:06 +02:00
parent e8b983bcc5
commit ba9d10055e

View File

@ -283,8 +283,7 @@ local function apply_bone_meal(pointed_thing)
end end
elseif string.find(n.name, "mcl_farming:sweet_berry_bush_") then elseif string.find(n.name, "mcl_farming:sweet_berry_bush_") then
mcl_dye.add_bone_meal_particle(pos) mcl_dye.add_bone_meal_particle(pos)
local stages = math.random(2, 3) return mcl_farming:grow_plant("plant_sweet_berry_bush", pos, n, 1, true)
return mcl_farming:grow_plant("plant_sweet_berry_bush", pos, n, stages, true)
elseif n.name == "mcl_cocoas:cocoa_1" or n.name == "mcl_cocoas:cocoa_2" then elseif n.name == "mcl_cocoas:cocoa_1" or n.name == "mcl_cocoas:cocoa_2" then
mcl_dye.add_bone_meal_particle(pos) mcl_dye.add_bone_meal_particle(pos)
-- Cocoa: Advance by 1 stage -- Cocoa: Advance by 1 stage