Jump to content

[1.6.4] can't compile the mod for 4 identical errors?


AXELTOPOLINO

Recommended Posts

Hello guys,

I'm trying to recompile the StarWars mod, but I get 78 warning about deprecated methods (just skipped them) and 4 errors which stop the process. The errors are all the same type:

 

D:\MC modding\mod_starwars\1.x.x\SW 1.1.3 - Forge 9.11.0 - Minecraft 1.6.4\forge\mcp\src\minecraft\cpw\mods\fml\common\ObfuscationReflectionHelper.java:36: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object
            return ReflectionHelper.getPrivateValue(classToAccess, instance, fieldIndex);
                                                   ^

D:\MC modding\mod_starwars\1.x.x\SW 1.1.3 - Forge 9.11.0 - Minecraft 1.6.4\forge\mcp\src\minecraft\cpw\mods\fml\common\ObfuscationReflectionHelper.java:61: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object
            return ReflectionHelper.getPrivateValue(classToAccess, instance, remapFieldNames(classToAccess.getName(),fieldNames));
                                                   ^

D:\MC modding\mod_starwars\1.x.x\SW 1.1.3 - Forge 9.11.0 - Minecraft 1.6.4\forge\mcp\src\minecraft\net\minecraft\src\ModLoader.java:482: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object
        return ObfuscationReflectionHelper.getPrivateValue(instanceclass, instance, fieldindex);
                                                          ^

D:\MC modding\mod_starwars\1.x.x\SW 1.1.3 - Forge 9.11.0 - Minecraft 1.6.4\forge\mcp\src\minecraft\net\minecraft\src\ModLoader.java:496: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,java.lang.Object
        return ObfuscationReflectionHelper.getPrivateValue(instanceclass, instance, field);
                                                          ^

 

2 errors come from my code (I did some reflections to get some private MC fields but they should work), but the other 2 come from Forge stuff! What should I do? I have already installed forge for 1.6.4 twice  :(

 

Thanks you a lot guys,

Axel

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.