mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-24 17:50:21 +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
|
end
|
||||||
|
|
||||||
-- global function
|
-- global function
|
||||||
mobs:line_of_sight = function(self, pos1, pos2, stepsize)
|
function mobs:line_of_sight(self, pos1, pos2, stepsize)
|
||||||
return local line_of_sight = function(self, pos1, pos2, stepsize)
|
return line_of_sight(self, pos1, pos2, stepsize)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user