From bff313267be54b0b7796cbe4d7f24d551fb0a5f2 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 12 Apr 2020 12:14:42 +0100 Subject: [PATCH] re-enable raycasting line of sight (should work now) --- api.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api.lua b/api.lua index 4778d5c..71ccd9f 100644 --- a/api.lua +++ b/api.lua @@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi") mobs = { mod = "redo", - version = "20200411", + version = "20200412", intllib = S, invis = minetest.global_exists("invisibility") and invisibility or {} } @@ -463,9 +463,9 @@ local ray_line_of_sight = function(self, pos1, pos2) while thing do - if thing.type == "object" - and thing.ref ~= self.object - and not thing.ref:is_player() then return false end +-- if thing.type == "object" +-- and thing.ref ~= self.object +-- and not thing.ref:is_player() then return false end if thing.type == "node" then @@ -482,7 +482,7 @@ local ray_line_of_sight = function(self, pos1, pos2) end -- detect if using minetest 5.0 by searching for permafrost node -local is_50 = nil -- minetest.registered_nodes["default:permafrost"] +local is_50 = minetest.registered_nodes["default:permafrost"] function mob_class:line_of_sight(pos1, pos2, stepsize)