mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Fix enderman teleport attack
This commit is contained in:
parent
4fb9e69e41
commit
f6fa90096d
1 changed files with 2 additions and 2 deletions
|
@ -282,8 +282,8 @@ mobs:register_mob("mobs_mc:enderman", {
|
|||
--self:teleport(nil)
|
||||
--self.state = ""
|
||||
--else
|
||||
if self.attack then
|
||||
local target = self.attack
|
||||
if self.attacking then
|
||||
local target = self.attacking
|
||||
local pos = target:get_pos()
|
||||
if pos ~= nil then
|
||||
if vector.distance(self.object:get_pos(), target:get_pos()) > 10 then
|
||||
|
|
Loading…
Reference in a new issue