diff --git a/src/java/cr0s/warpdrive/WCClassTransformer.java b/src/java/cr0s/warpdrive/WCClassTransformer.java index 00770f72..d4ba28c2 100644 --- a/src/java/cr0s/warpdrive/WCClassTransformer.java +++ b/src/java/cr0s/warpdrive/WCClassTransformer.java @@ -1,4 +1,4 @@ -package cr0s.warpdriveCore; +package cr0s.warpdrive; import java.util.HashMap; import java.util.Iterator; @@ -117,7 +117,8 @@ public class WCClassTransformer implements net.minecraft.launchwrapper.IClassTra if (nodeAt.cst.equals(Double.valueOf(0.039999999105930328D))) { VarInsnNode beforeNode = new VarInsnNode(Opcodes.ALOAD, 0); - MethodInsnNode overwriteNode = new MethodInsnNode(Opcodes.INVOKESTATIC, GRAVITY_MANAGER_CLASS, "getItemGravity", "(L" + nodemap.get("entityItemClass") + ";)D"); + MethodInsnNode overwriteNode = new MethodInsnNode(Opcodes.INVOKESTATIC, GRAVITY_MANAGER_CLASS, "getItemGravity", "(L" + + nodemap.get("entityItemClass") + ";)D"); methodnode.instructions.insertBefore(nodeAt, beforeNode); methodnode.instructions.set(nodeAt, overwriteNode); injectionCount++; @@ -125,7 +126,8 @@ public class WCClassTransformer implements net.minecraft.launchwrapper.IClassTra if (nodeAt.cst.equals(Double.valueOf(0.98000001907348633D))) { VarInsnNode beforeNode = new VarInsnNode(Opcodes.ALOAD, 0); - MethodInsnNode overwriteNode = new MethodInsnNode(Opcodes.INVOKESTATIC, GRAVITY_MANAGER_CLASS, "getItemGravity2", "(L" + nodemap.get("entityItemClass") + ";)D"); + MethodInsnNode overwriteNode = new MethodInsnNode(Opcodes.INVOKESTATIC, GRAVITY_MANAGER_CLASS, "getItemGravity2", "(L" + + nodemap.get("entityItemClass") + ";)D"); methodnode.instructions.insertBefore(nodeAt, beforeNode); methodnode.instructions.set(nodeAt, overwriteNode); injectionCount++; @@ -170,7 +172,8 @@ public class WCClassTransformer implements net.minecraft.launchwrapper.IClassTra if (nodeAt.cst.equals(Double.valueOf(0.080000000000000002D))) { VarInsnNode beforeNode = new VarInsnNode(Opcodes.ALOAD, 0); - MethodInsnNode overwriteNode = new MethodInsnNode(Opcodes.INVOKESTATIC, GRAVITY_MANAGER_CLASS, "getGravityForEntity", "(L" + nodemap.get("entityLivingBaseClass") + ";)D"); + MethodInsnNode overwriteNode = new MethodInsnNode(Opcodes.INVOKESTATIC, GRAVITY_MANAGER_CLASS, "getGravityForEntity", "(L" + + nodemap.get("entityLivingBaseClass") + ";)D"); methodnode.instructions.insertBefore(nodeAt, beforeNode); methodnode.instructions.set(nodeAt, overwriteNode); injectionCount++; diff --git a/src/java/cr0s/warpdrive/WCDummyContainer.java b/src/java/cr0s/warpdrive/WCDummyContainer.java index 621ccd6d..e05c06a5 100644 --- a/src/java/cr0s/warpdrive/WCDummyContainer.java +++ b/src/java/cr0s/warpdrive/WCDummyContainer.java @@ -1,4 +1,4 @@ -package cr0s.warpdriveCore; +package cr0s.warpdrive; import java.util.Arrays; diff --git a/src/java/cr0s/warpdrive/WCFMLLoadingPlugin.java b/src/java/cr0s/warpdrive/WCFMLLoadingPlugin.java index 091d696a..7bf6dd8c 100644 --- a/src/java/cr0s/warpdrive/WCFMLLoadingPlugin.java +++ b/src/java/cr0s/warpdrive/WCFMLLoadingPlugin.java @@ -1,21 +1,14 @@ -package cr0s.warpdriveCore; +package cr0s.warpdrive; import java.io.File; import java.util.Map; import cpw.mods.fml.relauncher.IFMLCallHook; import cpw.mods.fml.relauncher.IFMLLoadingPlugin; -import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion; -@MCVersion(value = "1.6.4") public class WCFMLLoadingPlugin implements IFMLLoadingPlugin, IFMLCallHook { public static File location; - @Override - public String[] getLibraryRequestClass() { - return null; - } - @Override public String[] getASMTransformerClass() { return new String[] { WCClassTransformer.class.getName() }; @@ -42,4 +35,10 @@ public class WCFMLLoadingPlugin implements IFMLLoadingPlugin, IFMLCallHook { System.out.println("[WCD] call()"); return null; } + + @Override + public String getAccessTransformerClass() { + // TODO Auto-generated method stub + return null; + } } \ No newline at end of file