Updated old Core files

They dont really need to be in their own mod or package
This commit is contained in:
Francesco Macagno 2015-07-21 20:58:47 -07:00
parent 2527a07977
commit 0fd30fd897
3 changed files with 15 additions and 13 deletions

View file

@ -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++;

View file

@ -1,4 +1,4 @@
package cr0s.warpdriveCore;
package cr0s.warpdrive;
import java.util.Arrays;

View file

@ -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;
}
}