From f63cf29533059c556f3c72be108b8adbd48e5c3c Mon Sep 17 00:00:00 2001 From: DokaDoka <31368547+DokaDoka@users.noreply.github.com> Date: Fri, 11 Aug 2023 17:27:02 +1000 Subject: [PATCH] feat(main/client): ensure offsets are only considered for entities --- client/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.lua b/client/main.lua index 8b5cb30..c2ad4a7 100644 --- a/client/main.lua +++ b/client/main.lua @@ -94,7 +94,7 @@ local function shouldHide(option, distance, entityHit, endCoords) local offset = option.offset - if offset and type(offset) == 'vector3' then + if GetEntityType(entityHit) ~= 0 and offset and type(offset) == 'vector3' then if option.absoluteOffset then if #(endCoords - GetOffsetFromEntityInWorldCoords(entityHit, offset.x, offset.y, offset.z)) > 1 then return true