Skip to content

Commit

Permalink
jabel and linter cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern committed Jul 15, 2024
1 parent e672084 commit ae38897
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ plugins {
group = "com.falsepattern"

minecraft_fp {
java {
compatibility = jabel
version = JavaVersion.VERSION_17
}
mod {
modid = "falsepatternlib"
name = "FalsePatternLib"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public interface SmartTransformer extends IClassTransformer {
List<IClassNodeTransformer> transformers();

@Override
@Deprecated
default byte[] transform(String name, String transformedName, byte[] bytes) {
if (bytes == null) {
return null;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/falsepattern/lib/internal/Internet.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
package com.falsepattern.lib.internal;

import lombok.val;
import lombok.var;

import net.minecraft.launchwrapper.Launch;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public static synchronized void mergeTurboTransformers() {
val f = LaunchClassLoader.class.getDeclaredField("transformers");
f.setAccessible(true);

@SuppressWarnings("unchecked")
val transformers = (List<IClassTransformer>) f.get(Launch.classLoader);
for (int i = 0; i < transformers.size() - 1; i++) {
val a = transformers.get(i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import lombok.val;
import lombok.var;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import com.falsepattern.lib.util.MathUtil;
import com.google.common.collect.Queues;
import lombok.val;
import lombok.var;
import org.lwjgl.opengl.GL11;

import net.minecraft.client.Minecraft;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import com.falsepattern.lib.util.ResourceUtil;
import lombok.SneakyThrows;
import lombok.val;
import lombok.var;
import org.objectweb.asm.tree.FieldInsnNode;
import org.objectweb.asm.tree.MethodInsnNode;

Expand Down

0 comments on commit ae38897

Please sign in to comment.