Only use the shears once in dispenser if there are more mobs in front of the dispenser
This commit is contained in:
parent
aa930dc2b8
commit
1a5339e907
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user