add frustrum check to LogoutSpots

This commit is contained in:
noil 2019-11-05 23:19:04 -05:00
parent ff9a9c3d5b
commit 22d927bc96
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public final class LogoutSpotsModule extends Module {
for (GameProfile profile : this.logoutCache.keySet()) {
final PlayerData data = this.logoutCache.get(profile);
final GLUProjection.Projection projection = GLUProjection.getInstance().project(data.position.getX() - mc.getRenderManager().renderPosX, data.position.getY() - mc.getRenderManager().renderPosY, data.position.getZ() - mc.getRenderManager().renderPosZ, GLUProjection.ClampMode.NONE, true);
if (projection != null) {
if (projection != null && projection.isType(GLUProjection.Projection.Type.INSIDE)) {
GlStateManager.pushMatrix();
GlStateManager.translate(projection.getX(), projection.getY(), 0);
playerIcon.render(-8, -16 - 2, 16, 16);