From 975175e7b8da44b384cb7dab76778f4c2de21d2e Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 13 May 2019 16:07:42 +0100 Subject: [PATCH] fix mobs:line_of_sight() global function to use entity reference --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 3f76ca5..84bae97 100644 --- a/api.lua +++ b/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