Fix crash when bonemealing sweet berry bushes (#4419)

Reviewed-on: VoxeLibre/VoxeLibre#4419
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: teknomunk <teknomunk@protonmail.com>
Co-committed-by: teknomunk <teknomunk@protonmail.com>
This commit is contained in:
teknomunk 2024-06-11 18:47:18 +02:00 committed by the-real-herowl
parent 313c1f558b
commit 1b0deae026
1 changed files with 1 additions and 1 deletions

View File

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