restyle code

This commit is contained in:
FalsePattern committed 2022-07-02 20:21:50 +02:00
1 parent 413a113a4c
commit 7de5788013
58 files changed
+567 -480

No files matched your search

@@ -1,21 +1,19 @@
package com.falsepattern.endlessids.asm.transformer;
import com.falsepattern.endlessids.asm.AsmTransformException;
import com.falsepattern.endlessids.asm.AsmUtil;
import com.falsepattern.endlessids.asm.IClassNodeTransformer;
import com.falsepattern.endlessids.constants.ExtendedConstants;
import com.falsepattern.endlessids.constants.VanillaConstants;
import lombok.var;
import org.objectweb.asm.tree.FieldNode;
import com.falsepattern.endlessids.asm.AsmTransformException;
import org.objectweb.asm.tree.MethodNode;
import com.falsepattern.endlessids.asm.AsmUtil;
import org.objectweb.asm.tree.ClassNode;
import com.falsepattern.endlessids.asm.IClassNodeTransformer;
import org.objectweb.asm.tree.MethodNode;
public class FmlRegistry implements IClassNodeTransformer
{
public class FmlRegistry implements IClassNodeTransformer {
public FmlRegistry() {
super();
}
@Override
public void transform(final ClassNode cn, final boolean obfuscated) {
var field = AsmUtil.findField(cn, "MAX_BLOCK_ID", true);
@@ -28,7 +26,8 @@ public class FmlRegistry implements IClassNodeTransformer
}
boolean found = false;
for (final MethodNode method : cn.methods) {
if (AsmUtil.transformInlinedSizeMethod(cn, method, VanillaConstants.maxBlockID, ExtendedConstants.maxBlockID, true)) {
if (AsmUtil.transformInlinedSizeMethod(cn, method, VanillaConstants.maxBlockID,
ExtendedConstants.maxBlockID, true)) {
found = true;
}
AsmUtil.transformInlinedSizeMethod(cn, method, 31999, ExtendedConstants.maxBlockID, true);