fix highlightNothing being inverted
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m14s

This commit is contained in:
Daniella / Tove 2024-06-18 17:42:58 +02:00
parent 5058ffcdd4
commit 9f220acd74
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -121,7 +121,7 @@ public class ESP extends Feature {
if(highlight) {
if(mc.objectMouseOver != null) {
BlockPos pos = mc.objectMouseOver.getBlockPos();
if ((mc.objectMouseOver.typeOfHit != RayTraceResult.Type.MISS || !hightlightNothing) && mc.objectMouseOver.typeOfHit != RayTraceResult.Type.ENTITY) {
if ((mc.objectMouseOver.typeOfHit != RayTraceResult.Type.MISS || hightlightNothing) && mc.objectMouseOver.typeOfHit != RayTraceResult.Type.ENTITY) {
renderer.accept(mc.world.getBlockState(pos).getBoundingBox(mc.world, pos).offset(pos));
}
}