mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
Only show particles if bone meal is consumed, don't continue testing positions if bonemeal was used on the first check position
This commit is contained in:
parent
cfdef2435a
commit
6b1aa43238
@ -99,7 +99,9 @@ mcl_bone_meal.use_bone_meal = function(itemstack, placer, pointed_thing)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Particle effects
|
-- Particle effects
|
||||||
|
if consume then
|
||||||
mcl_bone_meal.add_bone_meal_particle(pos)
|
mcl_bone_meal.add_bone_meal_particle(pos)
|
||||||
|
end
|
||||||
|
|
||||||
-- Take the item
|
-- Take the item
|
||||||
if consume and ( not placer or not minetest.is_creative_enabled(placer:get_player_name()) ) then
|
if consume and ( not placer or not minetest.is_creative_enabled(placer:get_player_name()) ) then
|
||||||
@ -107,6 +109,7 @@ mcl_bone_meal.use_bone_meal = function(itemstack, placer, pointed_thing)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if success then return itemstack end
|
if success then return itemstack end
|
||||||
|
if consume then return itemstack end
|
||||||
end
|
end
|
||||||
|
|
||||||
return itemstack
|
return itemstack
|
||||||
|
Loading…
Reference in New Issue
Block a user