if you should go skating on the thin ice
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m15s

This commit is contained in:
Jess H 2024-06-17 02:12:01 +01:00
parent 697043f848
commit 3cd14ec5fc
Signed by: UnixSystemV
GPG key ID: 9B21C50B68D67F19

View file

@ -10,6 +10,7 @@ import de.com.baseband.client.registry.annotation.Range;
import de.com.baseband.client.util.adapt.Marker;
import de.com.baseband.client.util.render.Pixels;
import de.com.baseband.client.util.render.RenderAdapter;
import net.minecraft.block.BlockAir;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.AxisAlignedBB;
@ -33,8 +34,13 @@ public class ESP extends Feature {
}
@Config("Highlight")
@Marker(0)
public boolean highlight;
@Config("Highlight Air")
@Gate(0)
public boolean hightlightAir;
@Config("Entities")
public boolean entities;
@ -108,7 +114,9 @@ public class ESP extends Feature {
if(highlight) {
BlockPos pos = mc.objectMouseOver.getBlockPos();
RenderAdapter.drawAABBNow(mc.world.getBlockState(pos).getBoundingBox(mc.world, pos).offset(pos));
if(!(mc.world.getBlockState(pos).getBlock() instanceof BlockAir) || !hightlightAir) {
renderer.accept(mc.world.getBlockState(pos).getBoundingBox(mc.world, pos).offset(pos));
}
}
}