mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 12:01:06 +01:00
Fix crash when bonemealing sweet berry bushes (#4419)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/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:
parent
313c1f558b
commit
1b0deae026
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue