relative option in chunkfinder

This commit is contained in:
Ridan Vandenbergh 2018-08-08 19:56:00 +02:00
parent c7117c9946
commit 886c9b5424
1 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,7 @@ import static org.lwjgl.opengl.GL11.*;
public class ChunkFinder extends Module {
@Setting(name = "Y Offset", integer = true) private int yOffset = 0;
@Setting(name = "Relative") private boolean relative = true;
static ArrayList<Chunk> chunks = new ArrayList<>();
@ -67,10 +68,11 @@ public class ChunkFinder extends Module {
}
double x = mc.getRenderManager().renderPosX;
double y = relative ? 0 : mc.getRenderManager().renderPosY;
double z = mc.getRenderManager().renderPosZ;
GL11.glTranslated(-x, yOffset, -z);
GL11.glTranslated(-x, y+yOffset, -z);
GL11.glCallList(list);
GL11.glTranslated(x, -yOffset, z);
GL11.glTranslated(x, -(y+yOffset), z);
}
public static void newChunk(Chunk chunk) {