Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchej123 committed Aug 22, 2024
1 parent 201cf8c commit f6ec9cb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import net.minecraft.launchwrapper.IClassTransformer;

import lombok.val;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.Opcodes;
Expand All @@ -18,6 +17,8 @@

import com.gtnewhorizon.gtnhlib.asm.ClassConstantPoolParser;

import lombok.val;

public class TessellatorRedirectorTransformer implements IClassTransformer {

private static final String TessellatorClass = "net/minecraft/client/renderer/Tessellator";
Expand Down Expand Up @@ -45,9 +46,8 @@ public boolean shouldRfbTransform(byte[] basicClass) {
public byte[] transform(String name, String transformedName, byte[] basicClass) {
if (basicClass == null) return null;

for (val exclusion: TransformerExclusions) {
if (transformedName.startsWith(exclusion))
return basicClass;
for (val exclusion : TransformerExclusions) {
if (transformedName.startsWith(exclusion)) return basicClass;
}

if (!cstPoolParser.find(basicClass, true)) {
Expand Down

0 comments on commit f6ec9cb

Please sign in to comment.