summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-07-07 20:10:27 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-07-07 20:10:27 +0100
commit27390b2e36ed5427d1546ae3487adcafa660f5d5 (patch)
tree1646e41e333b27cacb59d6ed4121e283cef02987
parent3965b237f156c5aefa5f40fc8080dd72fe65119f (diff)
if order change
-rw-r--r--api.lua4
1 files 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)