Skip to content

Commit

Permalink
feat(main/client): ensure offsets are only considered for entities
Browse files Browse the repository at this point in the history
  • Loading branch information
DokaDoka committed Aug 13, 2023
1 parent 74aa795 commit f63cf29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f63cf29

Please sign in to comment.