From d4fe313077b1deb73975d440f51512fba4290ce4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 6 Feb 2019 08:26:52 +0100 Subject: [PATCH] Mobs: Fix line-of-sight handling (thanks, chon!) --- mods/ENTITIES/mcl_mobs/api.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index 969d4f0ca..b508b23a6 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -256,8 +256,7 @@ local line_of_sight = function(self, pos1, pos2, stepsize) -- It continues to advance in the line of sight in search of a real -- obstruction which counts as 'normal' nodebox. while minetest.registered_nodes[nn] - and (minetest.registered_nodes[nn].walkable == false - or minetest.registered_nodes[nn].drawtype == "nodebox") do + and minetest.registered_nodes[nn].walkable == false do -- Check if you can still move forward if td < ad + stepsize then