Now using MCP + LiteLoader build system, clean up, remade Config, remade the initialisation and whatnot, reformat, fixed LiteLoader compatibility.

This commit is contained in:
Ivan Molodetskikh committed 2014-06-05 17:12:59 +04:00
1 parent 8abfb6e2c3
commit a204c82ea5
34 files changed
+2166 -2391

No files matched your search

@@ -0,0 +1,28 @@
package yalter.mousetweaks;
import net.minecraft.client.Minecraft;
import net.minecraft.profiler.Profiler;
public class ProfilerCustom extends Profiler {
private Minecraft minecraft;
public ProfilerCustom() {
minecraft = Minecraft.getMinecraft();
}
@Override
public void startSection(String sectionName) {
// The useProfiler check is redundant here since the OnTick method cannot change in the runtime (at the time of writing this comment).
if (Main.useProfiler && "gameRenderer".equals(sectionName)) {
Main.onUpdateInGame();
}
super.startSection(sectionName);
if (Main.optifine) {
if (!Reflection.gameSettings.setFieldValue(minecraft.gameSettings, "ofProfiler", true)) {
Main.optifine = false;
}
}
}
}