From fd90faa2e20045e1743c68635ec844fc1637f59f Mon Sep 17 00:00:00 2001 From: YaLTeR Date: Tue, 9 Jul 2013 14:38:57 +0400 Subject: [PATCH] Update to Minecraft 1.6.2, removed unused code from ProfilerCustom. --- MouseTweaks/Constants.java | 4 ++-- MouseTweaks/ProfilerCustom.java | 8 +------- mcmod.info | 4 ++-- version.txt | 2 +- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/MouseTweaks/Constants.java b/MouseTweaks/Constants.java index 5693824..ffa534e 100644 --- a/MouseTweaks/Constants.java +++ b/MouseTweaks/Constants.java @@ -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"; } diff --git a/MouseTweaks/ProfilerCustom.java b/MouseTweaks/ProfilerCustom.java index 65066e6..4e37e18 100644 --- a/MouseTweaks/ProfilerCustom.java +++ b/MouseTweaks/ProfilerCustom.java @@ -9,7 +9,6 @@ import net.minecraft.src.Profiler; public class ProfilerCustom extends Profiler { - private LinkedList sectionStack = new LinkedList(); 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(); - } } } diff --git a/mcmod.info b/mcmod.info index 7e1db74..f41cf77 100644 --- a/mcmod.info +++ b/mcmod.info @@ -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" ], diff --git a/version.txt b/version.txt index 2eda823..308b6fa 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.6.1 \ No newline at end of file +1.6.2 \ No newline at end of file