Skip to content

Commit e5253c4

Browse files
committed
offset bounding boxes by block entity position in ESP
1 parent f165ab1 commit e5253c4

File tree

1 file changed

+5
-1
lines changed
  • src/main/kotlin/com/lambda/module/modules/render

1 file changed

+5
-1
lines changed

src/main/kotlin/com/lambda/module/modules/render/ESP.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ object ESP : Module(
9090
blockEntity,
9191
color,
9292
{ worldOutline(it.pos, outlineStyle.toStyle(color)) },
93-
{ it.cachedState.getOutlineShape(world, it.pos).boundingBoxes }
93+
{ entity ->
94+
entity.cachedState.getOutlineShape(world, entity.pos).boundingBoxes.map { box ->
95+
box.offset(entity.pos)
96+
}
97+
}
9498
)
9599
}
96100
}

0 commit comments

Comments
 (0)