From 8db28c133752cc379b584462a4614543ee1dcb12 Mon Sep 17 00:00:00 2001 From: NO11 Date: Thu, 17 Feb 2022 15:30:41 +0000 Subject: [PATCH] Update get_pointed_thing function --- mods/CORE/mcl_util/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/CORE/mcl_util/init.lua b/mods/CORE/mcl_util/init.lua index 4fee9b3bad..9be40a1e4d 100644 --- a/mods/CORE/mcl_util/init.lua +++ b/mods/CORE/mcl_util/init.lua @@ -572,11 +572,11 @@ function mcl_util.replace_mob(obj, mob) return obj end -function mcl_util.get_pointed_thing(player) +function mcl_util.get_pointed_thing(player, liquid) local pos = vector.offset(player:get_pos(), 0, player:get_properties().eye_height, 0) local look_dir = vector.multiply(player:get_look_dir(), 5) local pos2 = vector.add(pos, look_dir) - local ray = minetest.raycast(pos, pos2, false, true) + local ray = minetest.raycast(pos, pos2, false, liquid) if ray then for pointed_thing in ray do