From 27390b2e36ed5427d1546ae3487adcafa660f5d5 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 7 Jul 2017 20:10:27 +0100 Subject: [PATCH] if order change --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 39adac6..60807a6 100644 --- a/api.lua +++ b/api.lua @@ -3048,9 +3048,9 @@ function mobs:register_arrow(name, def) if entity and self.hit_mob + and entity._cmi_is_mob == true and tostring(player) ~= self.owner_id - and entity.name ~= self.object:get_luaentity().name - and entity._cmi_is_mob == true then + and entity.name ~= self.object:get_luaentity().name then self.hit_mob(self, player)