From f7227de6fa7afb048cdee6bae3c51b2e0fb1d10b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 2 Jul 2018 23:34:40 +0200 Subject: [PATCH] Local variable fix in mcl_mobs --- mods/ENTITIES/mcl_mobs/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 9549b05dc2..294d0c6f75 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -1410,7 +1410,7 @@ local npc_attack = function(self) p = obj.object:get_pos() sp = s - dist = get_distance(p, s) + local dist = get_distance(p, s) -- aim higher to make looking up hills more realistic p.y = p.y + 1