Skip to content

Commit 0d40170

Browse files
committed
Bump to 1.2
1 parent 2107597 commit 0d40170

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
def ENV = System.getenv()
88

99
group = 'org.mcphackers'
10-
version = '1.1.3'
10+
version = '1.2'
1111
if(!ENV.RELEASE.equals('1')) {
1212
project.version += '-SNAPSHOT'
1313
}

src/main/java/org/mcphackers/launchwrapper/Launch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
public class Launch {
88

9-
public static final String VERSION = "1.1.3";
9+
public static final String VERSION = "1.2";
1010
public static final Logger LOGGER = new Logger();
1111

1212
/**

src/main/java/org/mcphackers/launchwrapper/applet/AppletStub.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.net.URL;
44

55
public interface AppletStub {
6-
boolean isActive();
6+
boolean isActive();
77

88
URL getDocumentBase();
99

src/main/java/org/mcphackers/launchwrapper/tweak/AppletTweaker.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ public boolean tweakClass(ClassNodeSource source, String name) {
3838
}
3939
boolean changed = false;
4040
// Decrease class version
41-
if(renames.get(node.superName) != null) {
41+
if (renames.get(node.superName) != null) {
4242
node.superName = renames.get(node.superName);
4343
changed = true;
4444
}
4545
List<String> newInterfaces = new ArrayList<String>();
46-
for(String itf : node.interfaces) {
47-
if(renames.get(itf) != null) {
46+
for (String itf : node.interfaces) {
47+
if (renames.get(itf) != null) {
4848
newInterfaces.add(renames.get(itf));
4949
changed = true;
5050
} else {
@@ -55,19 +55,18 @@ public boolean tweakClass(ClassNodeSource source, String name) {
5555

5656
for (MethodNode m : node.methods) {
5757
for (AbstractInsnNode insn : iterator(m.instructions)) {
58-
if(insn.getType() == METHOD_INSN) {
58+
if (insn.getType() == METHOD_INSN) {
5959
MethodInsnNode mInsn = (MethodInsnNode)insn;
60-
if(renames.get(mInsn.owner) != null) {
60+
if (renames.get(mInsn.owner) != null) {
6161
mInsn.owner = renames.get(mInsn.owner);
6262
changed = true;
6363
}
6464
String desc = remapper.mapMethodDesc(mInsn.desc);
6565
mInsn.desc = desc;
6666
changed |= !desc.equals(mInsn.desc);
67-
}
68-
else if(insn.getType() == FIELD_INSN) {
67+
} else if (insn.getType() == FIELD_INSN) {
6968
FieldInsnNode fInsn = (FieldInsnNode)insn;
70-
if(renames.get(fInsn.owner) != null) {
69+
if (renames.get(fInsn.owner) != null) {
7170
fInsn.owner = renames.get(fInsn.owner);
7271
changed = true;
7372
}

0 commit comments

Comments
 (0)