fix mobs:line_of_sight() global function to use entity reference

This commit is contained in:
TenPlus1 2019-05-13 16:07:42 +01:00
parent 0bc62cbf74
commit 975175e7b8
1 changed files with 2 additions and 2 deletions

View File

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