if you should go skating on the thin ice
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m15s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m15s
This commit is contained in:
parent
697043f848
commit
3cd14ec5fc
1 changed files with 9 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue