Skip to content

Commit

Permalink
weird indent
Browse files Browse the repository at this point in the history
  • Loading branch information
tildejustin committed Dec 12, 2023
1 parent c365a14 commit 8b71328
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/main/java/me/modmuss50/optifabric/patcher/LambdaRebuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,17 @@ private void buildClassMap(JarEntry jarEntry) throws IOException {
}

private MethodNode findMethod(MethodNode optifineMethod, ClassNode minecraftClass) {
{
MethodNode lastNode = null;
int identicalMethods = 0;
for (MethodNode methodNode : minecraftClass.methods) {
if (ASMUtils.isSynthetic(methodNode.access) && methodNode.desc.equals(optifineMethod.desc)) {
identicalMethods++;
lastNode = methodNode;
}
}
if (identicalMethods == 1) {
return lastNode;
MethodNode lastNode = null;
int identicalMethods = 0;
for (MethodNode methodNode : minecraftClass.methods) {
if (ASMUtils.isSynthetic(methodNode.access) && methodNode.desc.equals(optifineMethod.desc)) {
identicalMethods++;
lastNode = methodNode;
}
}
if (identicalMethods == 1) {
return lastNode;
}
return null;
}

Expand Down

0 comments on commit 8b71328

Please sign in to comment.