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.
135721
javascript/classes.js
135721
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 KeyStrokes keyStrokes;
|
||||||
public static Fullbright fullbright;
|
public static Fullbright fullbright;
|
||||||
public static ArmorHud armorHud;
|
public static ArmorHud armorHud;
|
||||||
public static NoRain noRain;
|
public static NoRain noRain = new NoRain();
|
||||||
public static DynamicFOV dynamicFOV;
|
public static DynamicFOV dynamicFOV = new DynamicFOV();
|
||||||
public static PotionHUD potionHud;
|
public static PotionHUD potionHud;
|
||||||
public static NoHurtCam noHurtCam = new NoHurtCam();
|
public static NoHurtCam noHurtCam = new NoHurtCam();
|
||||||
public static Info coordinate;
|
public static Info coordinate;
|
||||||
|
@ -65,17 +65,17 @@ public class ModManager {
|
||||||
public static AutoRespawn autoRespawn;
|
public static AutoRespawn autoRespawn;
|
||||||
public static Freelook freelook;
|
public static Freelook freelook;
|
||||||
public static ComboCounter comboCounter;
|
public static ComboCounter comboCounter;
|
||||||
public static Hitboxes hitboxes;
|
public static Hitboxes hitboxes = new Hitboxes();
|
||||||
public static Health health;
|
public static Health health;
|
||||||
//public static ChunkBorders chunkBorders;
|
//public static ChunkBorders chunkBorders;
|
||||||
public static NoParticles noParticles;
|
public static NoParticles noParticles = new NoParticles();
|
||||||
public static ScoreboardNumbers scoreboardNumbers;
|
public static ScoreboardNumbers scoreboardNumbers;
|
||||||
public static Scoreboard scoreboard;
|
public static Scoreboard scoreboard;
|
||||||
public static AutoWalk autoWalk;
|
public static AutoWalk autoWalk;
|
||||||
public static AutoJump autoJump;
|
public static AutoJump autoJump;
|
||||||
public static SelfNametag selfNametag;
|
public static SelfNametag selfNametag;
|
||||||
public static Scoreboard scoreboard2;
|
public static Scoreboard scoreboard2;
|
||||||
public static ClearChat clearChat;
|
public static ClearChat clearChat = new ClearChat();
|
||||||
public static Tooltips tooltips;
|
public static Tooltips tooltips;
|
||||||
public static SmoothCamera smoothCamera;
|
public static SmoothCamera smoothCamera;
|
||||||
public static FPSB fpsb = new FPSB();
|
public static FPSB fpsb = new FPSB();
|
||||||
|
@ -113,21 +113,21 @@ public class ModManager {
|
||||||
register(fullbright = new Fullbright());
|
register(fullbright = new Fullbright());
|
||||||
register(noSwingDelay = new NoSwingDelay());
|
register(noSwingDelay = new NoSwingDelay());
|
||||||
register(minimalViewBobbing);
|
register(minimalViewBobbing);
|
||||||
register(noRain = new NoRain());
|
register(noRain);
|
||||||
register(dynamicFOV = new DynamicFOV());
|
register(dynamicFOV);
|
||||||
register(sprint = new Sprint());
|
register(sprint = new Sprint());
|
||||||
register(noHurtCam);
|
register(noHurtCam);
|
||||||
register(autoGG = new AutoGG());
|
register(autoGG = new AutoGG());
|
||||||
register(autoRespawn = new AutoRespawn());
|
register(autoRespawn = new AutoRespawn());
|
||||||
register(hitboxes = new Hitboxes());
|
register(hitboxes);
|
||||||
//register(chunkBorders = new ChunkBorders());
|
//register(chunkBorders = new ChunkBorders());
|
||||||
register(noParticles = new NoParticles());
|
register(noParticles);
|
||||||
register(scoreboardNumbers = new ScoreboardNumbers());
|
register(scoreboardNumbers = new ScoreboardNumbers());
|
||||||
register(scoreboard = new Scoreboard());
|
register(scoreboard = new Scoreboard());
|
||||||
register(autoWalk = new AutoWalk());
|
register(autoWalk = new AutoWalk());
|
||||||
register(autoJump = new AutoJump());
|
register(autoJump = new AutoJump());
|
||||||
register(selfNametag = new SelfNametag());
|
//register(selfNametag = new SelfNametag());
|
||||||
register(clearChat = new ClearChat());
|
register(clearChat);
|
||||||
register(tooltips = new Tooltips());
|
register(tooltips = new Tooltips());
|
||||||
register(smoothCamera = new SmoothCamera());
|
register(smoothCamera = new SmoothCamera());
|
||||||
register(animations);
|
register(animations);
|
||||||
|
|
|
@ -26,38 +26,38 @@ public class Freelook extends Mod {
|
||||||
if(W.freelook().isEnabled())
|
if(W.freelook().isEnabled())
|
||||||
perspectiveToggled = !perspectiveToggled;
|
perspectiveToggled = !perspectiveToggled;
|
||||||
|
|
||||||
cameraYaw = mc.thePlayer.rotationYaw;
|
cameraYaw = Minecraft.getMinecraft().thePlayer.rotationYaw;
|
||||||
cameraPitch = mc.thePlayer.rotationPitch;
|
cameraPitch = Minecraft.getMinecraft().thePlayer.rotationPitch;
|
||||||
|
|
||||||
if (perspectiveToggled && W.freelook().isEnabled()) {
|
if (perspectiveToggled && W.freelook().isEnabled()) {
|
||||||
previousePrespective = mc.gameSettings.thirdPersonView;
|
previousePrespective = Minecraft.getMinecraft().gameSettings.thirdPersonView;
|
||||||
mc.gameSettings.thirdPersonView = 1;
|
Minecraft.getMinecraft().gameSettings.thirdPersonView = 1;
|
||||||
} else {
|
} 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;
|
perspectiveToggled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public float getCameraYaw() {
|
public float getCameraYaw() {
|
||||||
return perspectiveToggled ? cameraYaw : mc.thePlayer.rotationYaw;
|
return perspectiveToggled ? cameraYaw : Minecraft.getMinecraft().thePlayer.rotationYaw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public float getCameraPitch() {
|
public float getCameraPitch() {
|
||||||
return perspectiveToggled ? cameraPitch : mc.thePlayer.rotationPitch;
|
return perspectiveToggled ? cameraPitch : Minecraft.getMinecraft().thePlayer.rotationPitch;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean overriderMouse() {
|
public boolean overriderMouse() {
|
||||||
if (mc.inGameHasFocus) {
|
if (Minecraft.getMinecraft().inGameHasFocus) {
|
||||||
if (!perspectiveToggled)
|
if (!perspectiveToggled)
|
||||||
return true;
|
return true;
|
||||||
mc.mouseHelper.mouseXYChange();
|
Minecraft.getMinecraft().mouseHelper.mouseXYChange();
|
||||||
float f1 = mc.gameSettings.mouseSensitivity * 0.6F + 0.2F;
|
float f1 = Minecraft.getMinecraft().gameSettings.mouseSensitivity * 0.6F + 0.2F;
|
||||||
float f2 = f1 * f1 * f1 * 8.0F;
|
float f2 = f1 * f1 * f1 * 8.0F;
|
||||||
float f3 = mc.mouseHelper.deltaX * f2;
|
float f3 = Minecraft.getMinecraft().mouseHelper.deltaX * f2;
|
||||||
float f4 = mc.mouseHelper.deltaY * f2;
|
float f4 = Minecraft.getMinecraft().mouseHelper.deltaY * f2;
|
||||||
cameraYaw += f3 * 0.15F;
|
cameraYaw += f3 * 0.15F;
|
||||||
cameraPitch += f4 * 0.15F;
|
cameraPitch += f4 * 0.15F;
|
||||||
if (cameraPitch > 90.0F)
|
if (cameraPitch > 90.0F)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user