Only use the shears once in dispenser if there are more mobs in front of the dispenser

This commit is contained in:
NO11 2021-09-08 14:22:53 +00:00
parent aa930dc2b8
commit 1a5339e907

View file

@ -217,6 +217,7 @@ local dispenserdef = {
minetest.sound_play("mcl_tools_shears_cut", { pos = pos }, true) minetest.sound_play("mcl_tools_shears_cut", { pos = pos }, true)
stack:add_wear(65535 / stackdef._mcl_diggroups.shearsy.uses) stack:add_wear(65535 / stackdef._mcl_diggroups.shearsy.uses)
inv:set_stack("main", stack_id, stack) inv:set_stack("main", stack_id, stack)
break
end end
end end
end end