mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-23 17:20:22 +01:00
make mobs:line_of_sight() function global
This commit is contained in:
parent
dc7cdd4df0
commit
77c19da8d4
4
api.lua
4
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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user