trycatch surround fixes it maybe
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m13s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m13s
This commit is contained in:
parent
bb5f5c70cd
commit
5af6ecb9c0
1 changed files with 25 additions and 19 deletions
|
@ -1,5 +1,6 @@
|
|||
package de.com.baseband.client.feature.modules.render;
|
||||
|
||||
import de.com.baseband.client.BaseBand;
|
||||
import de.com.baseband.client.feature.Feature;
|
||||
import de.com.baseband.client.feature.Features;
|
||||
import de.com.baseband.client.feature.category.Render;
|
||||
|
@ -62,33 +63,38 @@ public class ESP extends Feature {
|
|||
|
||||
@SubscribeEvent
|
||||
public void render(RenderWorldLastEvent event) {
|
||||
//this is disgusting and we need to fix it
|
||||
Vec3d eyePos = Objects.requireNonNull(mc.getRenderViewEntity()).getPositionEyes(event.getPartialTicks()).add(0, -mc.getRenderViewEntity().getEyeHeight(), 0);
|
||||
try {
|
||||
//this is disgusting and we need to fix it
|
||||
Vec3d eyePos = Objects.requireNonNull(mc.getRenderViewEntity()).getPositionEyes(event.getPartialTicks()).add(0, -mc.getRenderViewEntity().getEyeHeight(), 0);
|
||||
|
||||
|
||||
if(fill) {
|
||||
ready();
|
||||
translate(-eyePos.x, -eyePos.y, -eyePos.z);
|
||||
color(Pixels.mulTransparency(Features.getFeature(Client.class).theme.getGreenColor() | 0xff000000, opacity));
|
||||
depth(false);
|
||||
begin(GL11.GL_QUADS);
|
||||
if (fill) {
|
||||
ready();
|
||||
translate(-eyePos.x, -eyePos.y, -eyePos.z);
|
||||
color(Pixels.mulTransparency(Features.getFeature(Client.class).theme.getGreenColor() | 0xff000000, opacity));
|
||||
depth(false);
|
||||
begin(GL11.GL_QUADS);
|
||||
|
||||
draw(event, RenderAdapter::drawAABBNow);
|
||||
draw(event, RenderAdapter::drawAABBNow);
|
||||
|
||||
end();
|
||||
}
|
||||
end();
|
||||
}
|
||||
|
||||
|
||||
if(wireframe) {
|
||||
ready();
|
||||
translate(-eyePos.x, -eyePos.y, -eyePos.z);
|
||||
color(Features.getFeature(Client.class).theme.getGreenColor());
|
||||
depth(false);
|
||||
begin(GL11.GL_LINES);
|
||||
if (wireframe) {
|
||||
ready();
|
||||
translate(-eyePos.x, -eyePos.y, -eyePos.z);
|
||||
color(Features.getFeature(Client.class).theme.getGreenColor());
|
||||
depth(false);
|
||||
begin(GL11.GL_LINES);
|
||||
|
||||
draw(event, RenderAdapter::drawAABBLinesNow);
|
||||
draw(event, RenderAdapter::drawAABBLinesNow);
|
||||
|
||||
end();
|
||||
end();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
BaseBand.LOGGER.error("Please send the above stacktrace to a developer!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue