summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-08-08 10:35:37 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2018-08-08 10:35:37 +0100
commit77c19da8d42521da8878e76045b8e45d91059e8f (patch)
tree3a18f05c45e4ffe0a41fb1abace030143bd9d400
parentdc7cdd4df0f8e31195e770e00c0a3933c1acabe2 (diff)
make mobs:line_of_sight() function global
-rw-r--r--api.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/api.lua b/api.lua
index 8dd2ce5..5f9a674 100644
--- a/api.lua
+++ b/api.lua
@@ -282,8 +282,8 @@ local line_of_sight = function(self, pos1, pos2, stepsize)
end
-- global function
-mobs:line_of_sight = function(self, pos1, pos2, stepsize)
- return local line_of_sight = function(self, pos1, pos2, stepsize)
+function mobs:line_of_sight(self, pos1, pos2, stepsize)
+ return line_of_sight(self, pos1, pos2, stepsize)
end