From 77c19da8d42521da8878e76045b8e45d91059e8f Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 8 Aug 2018 10:35:37 +0100 Subject: [PATCH] make mobs:line_of_sight() function global --- api.lua | 4 ++-- 1 file 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