From d61103b44d6a08b13b3165d3a16f739e58950018 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Fri, 17 Jul 2015 12:00:34 +0200 Subject: [PATCH] change MFF version to Release Version of this fix --- mods/mobs/api.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mods/mobs/api.lua b/mods/mobs/api.lua index 97d12cbb..fabed9f7 100755 --- a/mods/mobs/api.lua +++ b/mods/mobs/api.lua @@ -961,7 +961,10 @@ end local s = self.object:getpos() local p = self.attack.player:getpos() - if not s or not p then return end + if not p then + self.state = "stand" + return + end p.y = p.y - .5 s.y = s.y + .5 local dist = ((p.x - s.x) ^ 2 + (p.y - s.y) ^ 2 + (p.z - s.z) ^ 2) ^ 0.5