mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-26 18:51:30 +01:00
Remove unnecessary space in the attack reach limit on mobs code
This commit is contained in:
parent
b2507c3640
commit
ed507d8509
@ -522,7 +522,7 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
|
|||||||
|
|
||||||
if is_player then
|
if is_player then
|
||||||
-- is mob out of reach?
|
-- is mob out of reach?
|
||||||
if vector.distance(mob_pos, player_pos) > 3 then
|
if vector.distance(mob_pos, player_pos) > 3 then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
-- is mob protected?
|
-- is mob protected?
|
||||||
|
Loading…
Reference in New Issue
Block a user