diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-08-03 19:19:25 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-08-03 19:19:25 +0100 |
commit | 6bf601f29f46076b9c1c3c6d5da81e47741a9274 (patch) | |
tree | 89c6b8f0aba20d39dccf670a5fb323cc35932f03 /api.lua | |
parent | 3e458e1e49687be99f6d492347f452ac60366dcd (diff) |
fix local
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,9 +1,9 @@ --- Mobs Api (30th July 2017) +-- Mobs Api (3rd August 2017) mobs = {} mobs.mod = "redo" -mobs.version = "20170730" +mobs.version = "20170803" -- Intllib @@ -1255,9 +1255,9 @@ local npc_attack = function(self) return end + local p, sp, obj, min_player local s = self.object:getpos() local min_dist = self.view_range + 1 - local obj, min_player = nil, nil local objs = minetest.get_objects_inside_radius(s, self.view_range) for n = 1, #objs do @@ -1266,7 +1266,7 @@ local npc_attack = function(self) if obj and obj.type == "monster" then - local p = obj.object:getpos() + p = obj.object:getpos() dist = get_distance(p, s) |