add ESP highlight
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m14s

This commit is contained in:
Daniella / Tove 2024-06-15 20:54:31 +02:00
parent 309ea94bbb
commit 952dfc158d
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -32,6 +32,9 @@ public class ESP extends Feature {
return "ESP";
}
@Config("Highlight")
public boolean highlight;
@Config("Entities")
public boolean entities;
@ -102,6 +105,11 @@ public class ESP extends Feature {
renderer.accept(mc.world.getBlockState(pos).getBoundingBox(mc.world, pos).offset(pos));
}
}
if(highlight) {
BlockPos pos = mc.objectMouseOver.getBlockPos();
RenderAdapter.drawAABBNow(mc.world.getBlockState(pos).getBoundingBox(mc.world, pos).offset(pos));
}
}