diff --git a/bin/main/dev/resent/module/impl/hud/Freelook.class b/bin/main/dev/resent/module/impl/hud/Freelook.class index 9c82d91d..51bd77de 100644 Binary files a/bin/main/dev/resent/module/impl/hud/Freelook.class and b/bin/main/dev/resent/module/impl/hud/Freelook.class differ diff --git a/bin/main/dev/resent/module/impl/hud/Info.class b/bin/main/dev/resent/module/impl/hud/Info.class index b028cc8b..761eca86 100644 Binary files a/bin/main/dev/resent/module/impl/hud/Info.class and b/bin/main/dev/resent/module/impl/hud/Info.class differ diff --git a/bin/main/dev/resent/module/impl/hud/KeyStrokes.class b/bin/main/dev/resent/module/impl/hud/KeyStrokes.class index 871114b0..4bd7831b 100644 Binary files a/bin/main/dev/resent/module/impl/hud/KeyStrokes.class and b/bin/main/dev/resent/module/impl/hud/KeyStrokes.class differ diff --git a/bin/main/dev/resent/module/impl/movement/AutoJump.class b/bin/main/dev/resent/module/impl/movement/AutoJump.class index fcd410e9..7414e352 100644 Binary files a/bin/main/dev/resent/module/impl/movement/AutoJump.class and b/bin/main/dev/resent/module/impl/movement/AutoJump.class differ diff --git a/bin/main/dev/resent/module/impl/movement/AutoWalk.class b/bin/main/dev/resent/module/impl/movement/AutoWalk.class index 594174d9..3fd216af 100644 Binary files a/bin/main/dev/resent/module/impl/movement/AutoWalk.class and b/bin/main/dev/resent/module/impl/movement/AutoWalk.class differ diff --git a/bin/main/net/minecraft/client/settings/KeyBinding.class b/bin/main/net/minecraft/client/settings/KeyBinding.class index 25fee00e..5f50d27b 100644 Binary files a/bin/main/net/minecraft/client/settings/KeyBinding.class and b/bin/main/net/minecraft/client/settings/KeyBinding.class differ diff --git a/src/main/java/dev/resent/module/impl/hud/Info.java b/src/main/java/dev/resent/module/impl/hud/Info.java index 4acc73ff..c7eec1de 100644 --- a/src/main/java/dev/resent/module/impl/hud/Info.java +++ b/src/main/java/dev/resent/module/impl/hud/Info.java @@ -4,30 +4,28 @@ import dev.resent.module.base.Category; import dev.resent.module.base.RenderModule; import dev.resent.setting.BooleanSetting; import dev.resent.util.render.Color; -import net.minecraft.client.Minecraft; -import net.minecraft.src.Direction; import net.minecraft.client.gui.Gui; -import net.minecraft.src.MathHelper; +import net.minecraft.util.BlockPos; public class Info extends RenderModule{ public Info(){ - super("Info", Category.HUD, 4, 14, true); - addSetting(direction); + super("Info", Category.HUD, 4, 14); + //addSetting(direction); } public BooleanSetting direction = new BooleanSetting("Direction", "", true); public static int yes = 6; - public int getWidth(){ return Minecraft.getMinecraft().fontRenderer.getStringWidth("X: -99999999 + "); } - public int getHeight() { return Minecraft.getMinecraft().fontRenderer.FONT_HEIGHT * yes; }; + public int getWidth(){ return mc.fontRendererObj.getStringWidth("X: -99999999 + "); } + public int getHeight() { return mc.fontRendererObj.FONT_HEIGHT * yes; }; @Override public void draw() { int px = (int) mc.thePlayer.posX; int py = (int) mc.thePlayer.posY; int pz = (int) mc.thePlayer.posZ; - int rot = MathHelper.floor_double(this.mc.thePlayer.rotationYaw*4/360+0.5) & 3; + //int rot = MathHelper.floor_double(this.mc.thePlayer.rotationYaw*4/360+0.5) & 3; if (mc.thePlayer != null) { Gui.drawRect(this.x, this.y, this.x+this.getWidth(), this.y+this.getHeight(), new Color(0, 0, 0, 200).getRGB()); mc.fontRendererObj.drawStringWithShadow(" X: " + px, this.x+5, this.y + 14, -1); @@ -35,12 +33,12 @@ public class Info extends RenderModule{ mc.fontRendererObj.drawStringWithShadow(" Z: " + pz, this.x+5, this.y + 34, -1); if (!direction.getValue()) yes = 6; - if (direction.getValue()) { - mc.fontRendererObj.drawStringWithShadow(" Dir: " + Direction.directionsF[rot], this.x+5+mc.fontRendererObj.getStringWidth(" X: " + px), this.y + 14, -1); - mc.fontRendererObj.drawStringWithShadow(" Biome: " + mc.theWorld.getBiomeGenForCoords(px, py), this.x+5, this.y+44, -1); + //if (direction.getValue()) { + // mc.fontRendererObj.drawStringWithShadow(" Dir: " + Direction.directionsF[rot], this.x+5+mc.fontRendererObj.getStringWidth(" X: " + px), this.y + 14, -1); + mc.fontRendererObj.drawStringWithShadow(" Biome: " + mc.theWorld.getBiomeGenForCoords(new BlockPos(px, py, pz)).biomeName, this.x+5, this.y+44, -1); //mc.fontRendererObj.drawStringWithShadow(" A: " + MathHelper.floor_double((double)mc.thePlayer.rotationYaw>360 || mc.thePlayer.rotationYaw<-360 ? mc.thePlayer.rotationYaw-360 : mc.thePlayer.rotationYaw) + "°", this.x + mc.fontRendererObj.getStringWidth(" D: N "), this.y + 44, -1); yes = 7; - } + //} } } diff --git a/src/main/java/net/minecraft/client/settings/KeyBinding.java b/src/main/java/net/minecraft/client/settings/KeyBinding.java index 2ff1109b..c4de9055 100644 --- a/src/main/java/net/minecraft/client/settings/KeyBinding.java +++ b/src/main/java/net/minecraft/client/settings/KeyBinding.java @@ -35,7 +35,7 @@ public class KeyBinding implements Comparable { private final int keyCodeDefault; private final String keyCategory; public int keyCode; - private boolean pressed; + public boolean pressed; private int pressTime; public static void onTick(int keyCode) {