Update to Minecraft 1.6.2, removed unused code from ProfilerCustom.

This commit is contained in:
YaLTeR committed 2013-07-09 14:38:57 +04:00
1 parent 4e4e9813ed
commit fd90faa2e2
4 files changed
+6 -12

No files matched your search

+2 -2
View File
@@ -6,12 +6,12 @@ public class Constants {
public static final String NAME = "Mouse Tweaks";
// Mod version
public static final String VERSION = "2.1 (for Minecraft 1.6.1)";
public static final String VERSION = "2.2 (for Minecraft 1.6.2)";
// Obfuscated names
public static final String ISMOUSEOVERSLOT_NAME = "a";
public static final String FIELDE_NAME = "G";
public static final String FIELDq_NAME = "s";
public static final String MCPROFILER_NAME = "B";
public static final String MCPROFILER_NAME = "C";
}
+1 -7
View File
@@ -9,7 +9,6 @@ import net.minecraft.src.Profiler;
public class ProfilerCustom extends Profiler
{
private LinkedList<String> sectionStack = new LinkedList<String>();
private Minecraft minecraft;
public ProfilerCustom()
@@ -20,11 +19,10 @@ public class ProfilerCustom extends Profiler
@Override
public void startSection(String sectionName)
{
if ("gameRenderer".equals(sectionName) && "root".equals(sectionStack.getLast())) {
if ("gameRenderer".equals(sectionName)) {
Main.onUpdateInGame();
}
this.sectionStack.add(sectionName);
super.startSection(sectionName);
if (Main.optifine) {
@@ -37,9 +35,5 @@ public class ProfilerCustom extends Profiler
@Override
public void endSection() {
super.endSection();
if (sectionStack.size() > 0) {
sectionStack.removeLast();
}
}
}
+2 -2
View File
@@ -3,8 +3,8 @@
"modid": "mod_MouseTweaks",
"name": "Mouse Tweaks",
"description": "Have you ever been tired of right clicking while crafting furnaces, chests or whatever? My client-side mod solves this problem! Just hold your right mouse button in one inventory slot and drag your mouse toward another. Also works with left mouse button! Credits: LiteLoader and some mods' source code, which I used as a reference to how to do certain stuff when I was unsure",
"version": "2.1",
"mcversion": "1.6.1",
"version": "2.2",
"mcversion": "1.6.2",
"url": "http://www.minecraftforum.net/topic/1518185-",
"updateUrl": "",
"authors": [ "YaLTeR" ],
+1 -1
View File
@@ -1 +1 @@
1.6.1
1.6.2