From 30ccd2d3915820aafb6cf09c18400591036dfd4f Mon Sep 17 00:00:00 2001 From: FengMing <83573615+3093FengMing@users.noreply.github.com> Date: Thu, 28 Sep 2023 12:40:35 +0800 Subject: [PATCH] 1.3.2 b3 --- .../vaultpatcher_asm/core/VPClassTransformer.java | 9 ++++----- .../me/fengming/vaultpatcher_asm/fabric/EarlyRiser.java | 5 ----- .../vaultpatcher_asm/forge/VPTransformationService.java | 1 - 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/main/java/me/fengming/vaultpatcher_asm/core/VPClassTransformer.java b/src/main/java/me/fengming/vaultpatcher_asm/core/VPClassTransformer.java index fcaee7e..06c91fa 100644 --- a/src/main/java/me/fengming/vaultpatcher_asm/core/VPClassTransformer.java +++ b/src/main/java/me/fengming/vaultpatcher_asm/core/VPClassTransformer.java @@ -1,19 +1,18 @@ package me.fengming.vaultpatcher_asm.core; -import cpw.mods.modlauncher.api.ITransformer; -import cpw.mods.modlauncher.api.ITransformerVotingContext; -import cpw.mods.modlauncher.api.TransformerVoteResult; import me.fengming.vaultpatcher_asm.Utils; import me.fengming.vaultpatcher_asm.VaultPatcher; import me.fengming.vaultpatcher_asm.config.DebugMode; import me.fengming.vaultpatcher_asm.config.Pairs; import me.fengming.vaultpatcher_asm.config.TranslationInfo; import me.fengming.vaultpatcher_asm.config.VaultPatcherConfig; -import org.jetbrains.annotations.NotNull; import org.objectweb.asm.Opcodes; import org.objectweb.asm.tree.*; -import java.util.*; +import java.util.HashMap; +import java.util.ListIterator; +import java.util.Map; +import java.util.Set; import java.util.function.Consumer; public class VPClassTransformer implements Consumer { diff --git a/src/main/java/me/fengming/vaultpatcher_asm/fabric/EarlyRiser.java b/src/main/java/me/fengming/vaultpatcher_asm/fabric/EarlyRiser.java index 4a61f16..554975d 100644 --- a/src/main/java/me/fengming/vaultpatcher_asm/fabric/EarlyRiser.java +++ b/src/main/java/me/fengming/vaultpatcher_asm/fabric/EarlyRiser.java @@ -1,7 +1,6 @@ package me.fengming.vaultpatcher_asm.fabric; import com.chocohead.mm.api.ClassTinkerers; -import cpw.mods.modlauncher.api.IEnvironment; import me.fengming.vaultpatcher_asm.Utils; import me.fengming.vaultpatcher_asm.VaultPatcher; import me.fengming.vaultpatcher_asm.config.TranslationInfo; @@ -9,12 +8,8 @@ import me.fengming.vaultpatcher_asm.core.VPClassTransformer; import me.fengming.vaultpatcher_asm.core.VPMinecraftTransformer; import net.fabricmc.loader.api.FabricLoader; -import net.fabricmc.loader.impl.FabricLoaderImpl; -import java.lang.reflect.Field; -import java.nio.file.Path; import java.util.List; -import java.util.Optional; public class EarlyRiser implements Runnable { @Override diff --git a/src/main/java/me/fengming/vaultpatcher_asm/forge/VPTransformationService.java b/src/main/java/me/fengming/vaultpatcher_asm/forge/VPTransformationService.java index adf6fea..87f2cee 100644 --- a/src/main/java/me/fengming/vaultpatcher_asm/forge/VPTransformationService.java +++ b/src/main/java/me/fengming/vaultpatcher_asm/forge/VPTransformationService.java @@ -6,7 +6,6 @@ import cpw.mods.modlauncher.api.ITransformer; import me.fengming.vaultpatcher_asm.Utils; import me.fengming.vaultpatcher_asm.VaultPatcher; -import me.fengming.vaultpatcher_asm.core.VPMinecraftTransformer; import org.jetbrains.annotations.NotNull; import java.lang.reflect.Field;