summaryrefslogtreecommitdiff
path: root/api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'api.lua')
-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)