Fix some shitty crashes
This commit is contained in:
parent
ccd500c6bb
commit
6aae1eeebb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
135791
javascript/classes.js
135791
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -54,8 +54,8 @@ public class ModManager {
|
|||
public static KeyStrokes keyStrokes;
|
||||
public static Fullbright fullbright;
|
||||
public static ArmorHud armorHud;
|
||||
public static NoRain noRain;
|
||||
public static DynamicFOV dynamicFOV;
|
||||
public static NoRain noRain = new NoRain();
|
||||
public static DynamicFOV dynamicFOV = new DynamicFOV();
|
||||
public static PotionHUD potionHud;
|
||||
public static NoHurtCam noHurtCam = new NoHurtCam();
|
||||
public static Info coordinate;
|
||||
|
@ -65,17 +65,17 @@ public class ModManager {
|
|||
public static AutoRespawn autoRespawn;
|
||||
public static Freelook freelook;
|
||||
public static ComboCounter comboCounter;
|
||||
public static Hitboxes hitboxes;
|
||||
public static Hitboxes hitboxes = new Hitboxes();
|
||||
public static Health health;
|
||||
//public static ChunkBorders chunkBorders;
|
||||
public static NoParticles noParticles;
|
||||
public static NoParticles noParticles = new NoParticles();
|
||||
public static ScoreboardNumbers scoreboardNumbers;
|
||||
public static Scoreboard scoreboard;
|
||||
public static AutoWalk autoWalk;
|
||||
public static AutoJump autoJump;
|
||||
public static SelfNametag selfNametag;
|
||||
public static Scoreboard scoreboard2;
|
||||
public static ClearChat clearChat;
|
||||
public static ClearChat clearChat = new ClearChat();
|
||||
public static Tooltips tooltips;
|
||||
public static SmoothCamera smoothCamera;
|
||||
public static FPSB fpsb = new FPSB();
|
||||
|
@ -113,21 +113,21 @@ public class ModManager {
|
|||
register(fullbright = new Fullbright());
|
||||
register(noSwingDelay = new NoSwingDelay());
|
||||
register(minimalViewBobbing);
|
||||
register(noRain = new NoRain());
|
||||
register(dynamicFOV = new DynamicFOV());
|
||||
register(noRain);
|
||||
register(dynamicFOV);
|
||||
register(sprint = new Sprint());
|
||||
register(noHurtCam);
|
||||
register(autoGG = new AutoGG());
|
||||
register(autoRespawn = new AutoRespawn());
|
||||
register(hitboxes = new Hitboxes());
|
||||
register(hitboxes);
|
||||
//register(chunkBorders = new ChunkBorders());
|
||||
register(noParticles = new NoParticles());
|
||||
register(noParticles);
|
||||
register(scoreboardNumbers = new ScoreboardNumbers());
|
||||
register(scoreboard = new Scoreboard());
|
||||
register(autoWalk = new AutoWalk());
|
||||
register(autoJump = new AutoJump());
|
||||
register(selfNametag = new SelfNametag());
|
||||
register(clearChat = new ClearChat());
|
||||
//register(selfNametag = new SelfNametag());
|
||||
register(clearChat);
|
||||
register(tooltips = new Tooltips());
|
||||
register(smoothCamera = new SmoothCamera());
|
||||
register(animations);
|
||||
|
|
|
@ -26,38 +26,38 @@ public class Freelook extends Mod {
|
|||
if(W.freelook().isEnabled())
|
||||
perspectiveToggled = !perspectiveToggled;
|
||||
|
||||
cameraYaw = mc.thePlayer.rotationYaw;
|
||||
cameraPitch = mc.thePlayer.rotationPitch;
|
||||
cameraYaw = Minecraft.getMinecraft().thePlayer.rotationYaw;
|
||||
cameraPitch = Minecraft.getMinecraft().thePlayer.rotationPitch;
|
||||
|
||||
if (perspectiveToggled && W.freelook().isEnabled()) {
|
||||
previousePrespective = mc.gameSettings.thirdPersonView;
|
||||
mc.gameSettings.thirdPersonView = 1;
|
||||
previousePrespective = Minecraft.getMinecraft().gameSettings.thirdPersonView;
|
||||
Minecraft.getMinecraft().gameSettings.thirdPersonView = 1;
|
||||
} else {
|
||||
mc.gameSettings.thirdPersonView = previousePrespective;
|
||||
Minecraft.getMinecraft().gameSettings.thirdPersonView = previousePrespective;
|
||||
}
|
||||
|
||||
if (Keyboard.getEventKey() == 6 && mc.gameSettings.keyBindFunction.pressed) {
|
||||
if (Keyboard.getEventKey() == 6 && Minecraft.getMinecraft().gameSettings.keyBindFunction.pressed) {
|
||||
perspectiveToggled = false;
|
||||
}
|
||||
}
|
||||
|
||||
public float getCameraYaw() {
|
||||
return perspectiveToggled ? cameraYaw : mc.thePlayer.rotationYaw;
|
||||
return perspectiveToggled ? cameraYaw : Minecraft.getMinecraft().thePlayer.rotationYaw;
|
||||
}
|
||||
|
||||
public float getCameraPitch() {
|
||||
return perspectiveToggled ? cameraPitch : mc.thePlayer.rotationPitch;
|
||||
return perspectiveToggled ? cameraPitch : Minecraft.getMinecraft().thePlayer.rotationPitch;
|
||||
}
|
||||
|
||||
public boolean overriderMouse() {
|
||||
if (mc.inGameHasFocus) {
|
||||
if (Minecraft.getMinecraft().inGameHasFocus) {
|
||||
if (!perspectiveToggled)
|
||||
return true;
|
||||
mc.mouseHelper.mouseXYChange();
|
||||
float f1 = mc.gameSettings.mouseSensitivity * 0.6F + 0.2F;
|
||||
Minecraft.getMinecraft().mouseHelper.mouseXYChange();
|
||||
float f1 = Minecraft.getMinecraft().gameSettings.mouseSensitivity * 0.6F + 0.2F;
|
||||
float f2 = f1 * f1 * f1 * 8.0F;
|
||||
float f3 = mc.mouseHelper.deltaX * f2;
|
||||
float f4 = mc.mouseHelper.deltaY * f2;
|
||||
float f3 = Minecraft.getMinecraft().mouseHelper.deltaX * f2;
|
||||
float f4 = Minecraft.getMinecraft().mouseHelper.deltaY * f2;
|
||||
cameraYaw += f3 * 0.15F;
|
||||
cameraPitch += f4 * 0.15F;
|
||||
if (cameraPitch > 90.0F)
|
||||
|
|
Loading…
Reference in New Issue
Block a user