Applying bone meal on a stage 3 sweet berry no longer grows it.

It now ignores the bone meal and harvests the sweet berry as normal.
This commit is contained in:
CyberMango 2023-01-01 23:02:38 +02:00
parent fb28e192e6
commit 17e02aec3c
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ for i=0, 3 do
minetest.record_protection_violation(pos, pn)
return itemstack
end
if mcl_dye and clicker:get_wielded_item():get_name() == "mcl_bone_meal:bone_meal" then
if 3 ~= i and mcl_dye and
clicker:get_wielded_item():get_name() == "mcl_bone_meal:bone_meal" then
mcl_dye.apply_bone_meal({under=pos},clicker)
if not minetest.is_creative_enabled(pn) then
itemstack:take_item()