mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +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
@ -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 New Issue
Block a user