aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/djtheredstoner/perspectivemod/asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/djtheredstoner/perspectivemod/asm')
-rw-r--r--src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/EntityRendererTransformer.java2
-rw-r--r--src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/MinecraftTransformer.java3
-rw-r--r--src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/RenderManagerTransformer.java1
3 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/EntityRendererTransformer.java b/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/EntityRendererTransformer.java
index ac47621..3b6a5ae 100644
--- a/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/EntityRendererTransformer.java
+++ b/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/EntityRendererTransformer.java
@@ -3,8 +3,6 @@ package me.djtheredstoner.perspectivemod.asm.transformers;
import me.djtheredstoner.perspectivemod.asm.ITransformer;
import org.objectweb.asm.tree.*;
-import java.lang.reflect.Field;
-import java.lang.reflect.Method;
import java.util.Iterator;
import static org.objectweb.asm.Opcodes.*;
diff --git a/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/MinecraftTransformer.java b/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/MinecraftTransformer.java
index 2a98619..ca1874b 100644
--- a/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/MinecraftTransformer.java
+++ b/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/MinecraftTransformer.java
@@ -36,7 +36,8 @@ public class MinecraftTransformer implements ITransformer {
String ownerName = mapClassName(insn.owner);
String fieldName = mapFieldNameFromNode(insn);
- if (ownerName.equals("net/minecraft/client/settings/GameSettings") && (fieldName.equals("thirdPersonView") || fieldName.equals("field_74320_O")) && insn.desc.equals("I")) {
+ if (ownerName.equals("net/minecraft/client/settings/GameSettings") &&
+ (fieldName.equals("thirdPersonView") || fieldName.equals("field_74320_O")) && insn.desc.equals("I")) {
method.instructions.insertBefore(insn, insertThirdPersonHook());
method.instructions.remove(insn);
}
diff --git a/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/RenderManagerTransformer.java b/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/RenderManagerTransformer.java
index fee214a..e41b81a 100644
--- a/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/RenderManagerTransformer.java
+++ b/src/main/java/me/djtheredstoner/perspectivemod/asm/transformers/RenderManagerTransformer.java
@@ -1,7 +1,6 @@
package me.djtheredstoner.perspectivemod.asm.transformers;
import me.djtheredstoner.perspectivemod.asm.ITransformer;
-import net.minecraftforge.fml.common.asm.transformers.deobf.FMLDeobfuscatingRemapper;
import org.objectweb.asm.tree.*;
import java.util.Iterator;