1
0
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:
TenPlus1 2019-05-13 16:07:42 +01:00
parent 0bc62cbf74
commit 975175e7b8

View File

@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = { mobs = {
mod = "redo", mod = "redo",
version = "20190511", version = "20190513",
intllib = S, intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}, invis = minetest.global_exists("invisibility") and invisibility or {},
} }
@ -486,7 +486,7 @@ end
-- global function -- global function
function mobs:line_of_sight(entity, pos1, pos2, stepsize) 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 end