This is likely due to the use of the vanilla method use mc.player.hasLineOfSight which could have problems
This is likely due to the use of the vanilla method use mc.player.hasLineOfSight which could have problems