mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Merge pull request 'Clearmobs: clear empty nametagged as well as nil (#2429)' (#2433) from fix_clearmobs_horses into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2433 Reviewed-by: MysticTempest <mystictempest@noreply.git.minetest.land>
This commit is contained in:
commit
14cba8197e
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ minetest.register_chatcommand("clearmobs",{
|
||||||
if o.is_mob then
|
if o.is_mob then
|
||||||
if param == "all" or
|
if param == "all" or
|
||||||
( param == "nametagged" and o.nametag ) or
|
( param == "nametagged" and o.nametag ) or
|
||||||
( param == "" and not o.nametag and not o.tamed ) or
|
( param == "" and ( not o.nametag or o.nametag == "" ) and not o.tamed ) or
|
||||||
( num and num > 0 and vector.distance(p:get_pos(),o.object:get_pos()) <= num ) then
|
( num and num > 0 and vector.distance(p:get_pos(),o.object:get_pos()) <= num ) then
|
||||||
o.object:remove()
|
o.object:remove()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue