make mobs:line_of_sight() function global

This commit is contained in:
TenPlus1 2018-08-08 10:35:37 +01:00
parent dc7cdd4df0
commit 77c19da8d4
1 changed files with 2 additions and 2 deletions

View File

@ -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