From beaff27f37bcf119b90e8bdc529c3209428a1365 Mon Sep 17 00:00:00 2001 From: tildejustin Date: Mon, 11 Dec 2023 19:23:45 -0500 Subject: [PATCH] weird indent --- .../optifabric/patcher/LambdaRebuilder.java | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/main/java/me/modmuss50/optifabric/patcher/LambdaRebuilder.java b/src/main/java/me/modmuss50/optifabric/patcher/LambdaRebuilder.java index b0db8e44..a288ba3d 100644 --- a/src/main/java/me/modmuss50/optifabric/patcher/LambdaRebuilder.java +++ b/src/main/java/me/modmuss50/optifabric/patcher/LambdaRebuilder.java @@ -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; }