From a0827e18265de1f13d1794a30fe4786c08afc12b Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername Date: Tue, 27 Dec 2022 21:31:45 +0000 Subject: [PATCH] Fix info mod --- .../dev/resent/module/impl/hud/Freelook.class | Bin 2193 -> 2592 bytes .../dev/resent/module/impl/hud/Info.class | Bin 1485 -> 2810 bytes .../resent/module/impl/hud/KeyStrokes.class | Bin 4423 -> 2983 bytes .../module/impl/movement/AutoJump.class | Bin 457 -> 2028 bytes .../module/impl/movement/AutoWalk.class | Bin 457 -> 2031 bytes .../client/settings/KeyBinding.class | Bin 3813 -> 3813 bytes .../java/dev/resent/module/impl/hud/Info.java | 22 ++++++++---------- .../minecraft/client/settings/KeyBinding.java | 2 +- 8 files changed, 11 insertions(+), 13 deletions(-) diff --git a/bin/main/dev/resent/module/impl/hud/Freelook.class b/bin/main/dev/resent/module/impl/hud/Freelook.class index 9c82d91d38f4cc113d7c4e8ef5ddab9c06911ad4..51bd77de4b19ece4145dfc7e29ea22c5cdfb626d 100644 GIT binary patch delta 1184 zcmY*ZT~ixX7=BK&?6ToN(-nfY7Hbm<#E(d+fW<2E5sD;=QY+LC+++{QhGiEwn^4p? zYFo$K&W_IDI8JB0;6iVj#7?Id{Q>?7|A2qMamMl81nBf)&z|?=dC&7c@7cX`{BCdL z&;K4i0&pI;??vR$LW|6wSpUcl=LrWgkN)8W3J ztZ9q9t8aK57x9K44PR8JF{9uuh9o5xEWjN*)P1jf!ZrQP~m|`b__pqYieTK8P z@KTn3ZPch3A|>>KCEOOjRCRQHGPNXjbB^vB9GCF{u__2}zDhEYzt!xbiVR4oRjkn| zn__pyw2gGd&Ii;PSkiwk93v)bj1WQ0v;f~{aH7}&GYz$p#~Jw#$FsIs~?Th#3WRmWi zuQu^o6K^&UJu>DR&{}yzhp>TmY@vyz26_(+=?^UJAHo*u=q39BmZS1r^tV%L1h~?~ z)!;-r?H(}+;{>hez-c`J6(`Y;Q%GO{qc}}>?RjKzhDI8vIVDiU5WdDRZ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8B@xERxbDp>6$w9H{%y`O z^lyoTfz=oab3r6yX>OCVTv=tvEvQg9VAxkg9tDQMB^ir{?dH1BEB<;U7)nbj@S{~< zOKW$W19K@%0VTq)4LCT6(L6>nTTQ!I@QtV|y;Z~*4pIHZCwCaedmHEsW>@sAi+&s_ zVhBeWZj_f^_?x~L`PAmJ(bVniKLKjBXO-1Fj#IIJ4y%BZG~hei11?~k0WOYV!ZJ9` zP|jlT2PZ0MXL`1XJs8NN%y1;5bVneUBCAE5$0UR6hhfLfz{}5jo7 z))aTG7cD`dF3eLInno&pEsski_73yAS}R?^48zKkm=;w;6wu_&TeCL4E0&n&J+5y{QYcDv3>L-3|B4Ha^tGcQ$B+!ygZ zr5BXaVN#xtRPgeVN-A8&+)%LDY6<>S=_u^>+-gNKu$P5z&?Ib-uj}n5-Tj1@Wo#xX z*Hm1Rds(%0Anr+f&m4P=rmZ3vr%)F)r~ZQ&Og$iLsGAdXzD`w3!*6gPKeRvh5r?avacr%0qQuEK^&V%cxi2`k z)?a;xGs_=P*?}%0N1%h)hXXiHu#*^0%M{a+Q<%aueP{4+fu5G+47Flux}R}zt#tV# mu6!e_m*{8@g4;#7{vQZqnFu$!P4DJ#GlRp4OoX|V>8)RqO=!CS diff --git a/bin/main/dev/resent/module/impl/hud/KeyStrokes.class b/bin/main/dev/resent/module/impl/hud/KeyStrokes.class index 871114b08d833f15c68af01cc2c2c96b2d2afe95..4bd7831b47801e80dcc4095c4f9d23f6287a2fe0 100644 GIT binary patch delta 58 zcmX@Ev|N0HITI6e#bisSm6I=Xc1~Wv>$16??J5%!(u(%25Fdx+UOh+&E$_$XLTCaZ%cDT)m5Me^OW+c!Zm0y`e7lo7H(q;X`;wM_ z3<)HV_{blHnDuR%Q@d@h)ulpJzU)-mHe}DfI0M0|Z3R4Ug6Wj|8T2wAf zbuy3`iZqj9e~^Sf;JwHhy^FRA(+n0KHtlkY;Vo1NnoaM_pti9UZC}}1TW4^t^RPz= zc$>jg8Z!tw3MmPpFgAS0g|QTQR+|S3va7^>qf<_~j6z#4jNL7_eWcILWO$)O^pNI*j)jtsNTEtT|#y)5;~GguBe(g{9@&RP!1YR)r53 z%=#>S*mYyHslgJfeD{;0s9Nq}62v;qgyc?W6=X(tC8qXb(5OfEl;d{;%$)*SbF_C< z&}z3z81Y7$Y2$uW*D&QOxrVXi#>d{`DIUTK zWgYUQQQz)kup>|=0d3%`LM5~}R%1q?TuFGA7kOM3$5-MB@>B1Q=e~85*xO@#LSvXrB9rF{V~m!KVKRx1937?s zi|}C+TJRBrvr8isNB~9fk=QZ&S#(wGf<(?6jY%`k}h%3@bXk4n}vL_kS`T-wveX_`7+FT zzgG%*rjTa~`D!6wgV!m_8$RZnG~PoMM;dP=;`! c6yb{}K=`H<;mb$#;j5A=Zj>T??YnjHKQ$|2Pyhe` diff --git a/bin/main/dev/resent/module/impl/movement/AutoJump.class b/bin/main/dev/resent/module/impl/movement/AutoJump.class index fcd410e936518e843bef67d7a611a88713789862..7414e3523d96da53b279f3e43c4a46802056f0db 100644 GIT binary patch literal 2028 zcma)7>vGdp5dMziM6sh_$B+~#gj=Atp%J~&izsd48VJ}0^{hVaks_K&Q{t=^n|MD1&YIBOUG8{dV`;i~jlV_1^$Kg;0=UD4JrR`63W*s5ze5 zw}oaoJ)6!0;Yi_HKlJYPot}a;!|6A*J3J6t-7^_xZd$Gt-eQ<4mf8&Iif4*hWEf@- zFfy3KyaJWs+!&w=55@2NP399h;k+tqrt(PFqzdy9#l#S|7)OryYXqgZ>+2VAqc zyQ4Kj-*R{Kw*r*f8Jxh9f<=afgtrF~Ju2SANeXGB(QK_XDpiK#NyJ!*f;fTGD&EH# zB18;`!GPgRu~c(KsCD-|-_jzfR+V?_{Xkc+OxY#e#rIJaBBh5tlUONG(ax*5fQt+% z&t<3=lkO+hP9NjG+3y5~Z*_#P&tU~u6kKLFIWAHaAE3yP2@b3nwvsegY#s#q=tL8q zCdbkXEzi{%ay82pjlM&%wRp!C427C!aJ$WYOMVZ9>2TK~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owQoFF{MN&=H55mTPW#{&VhAxusJgKaB0ejm+RawiP^} zGc-Bw&_~5rc*vl1>1G8XyKIkPI_ez5_2d|g=_bQ`Lvo{2UZ>a9N1U+NLdK5G!>&l0pFo|cj6+WLEhZ8fAeXsqH!Lai z#Th(eSWcF-(|#rlNo$kCci~Qaui_o7FDiJF!#WM>w(AN%Iu?SKi8#J7rmB;4D4?}j zooq@sH|CD+BrP7DOdv&H)0m;BLVsVAl+k;&l%IWp>>tRzz?qjgpTAUkh0DO7xITs5 z-y**vJr^RBEHY4W2}>xEOpOunHf{mAR9GEF(MXdf&Fv`86OyDzvQm19_kP7v=?Hg@ z@aYl0NdJzl5Pu3o{CVkfUUsF-i)9j5aw$@cIA Qe#B2C30eOcZJ0R!9|{LT>Hq)$ delta 256 zcmXYrzfJ-{7{q7q0vzkf;USgH(qSVF6?P_87#scs3yafRVa>98*}Gg~#WN6|!Dleh zL~D5&-oW^QHoxziWF|Aa=-cPppZ8AyeYDp+UDZ%$h@O)&>FLDGd)Llc7vPBDc4C~& ztuAFM9_=zyIw_PjB6IdZ%jH1u`gkG5lae|WL-}&0OsdTMBBNAJ8I=oT3sI_Ek)Lw} zI1W)kgQ4BM`ELxVa#T3VU7k-juipJ8uAI%#0fSE?L6=dcN~|45`}6_)1HoO)-w=M0 Y@(>aC9-x6HG5mAk1TiUw7SY4$FB9}PivR!s diff --git a/bin/main/net/minecraft/client/settings/KeyBinding.class b/bin/main/net/minecraft/client/settings/KeyBinding.class index 25fee00e0478c9a5c2fa310b8e1b6a5ff07dda56..5f50d27bb4b793f8c78dcb7474c369894627095a 100644 GIT binary patch delta 14 VcmaDV`&4#ABL^en<|dA0HUKOs1m*w$ delta 14 VcmaDV`&4#ABL^eX<|dA0HUKOy1m^$% 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) {