mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 02:00:21 +01:00
fix mobs:line_of_sight() global function to use entity reference
This commit is contained in:
parent
0bc62cbf74
commit
975175e7b8
4
api.lua
4
api.lua
@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
|
||||
|
||||
mobs = {
|
||||
mod = "redo",
|
||||
version = "20190511",
|
||||
version = "20190513",
|
||||
intllib = S,
|
||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||
}
|
||||
@ -486,7 +486,7 @@ end
|
||||
|
||||
-- global function
|
||||
function mobs:line_of_sight(entity, pos1, pos2, stepsize)
|
||||
return mob_class:line_of_sight(pos1, pos2, stepsize)
|
||||
return entity:line_of_sight(pos1, pos2, stepsize)
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user