Jump to content

Recommended Posts

Posted

Hi

 

Have a look at this link for some guidance on how to use preInit etc properly.  Putting the code in the Mod's constructor won't work.

 

(The link is for 1.6.4 but is almost identical for 1.7.2 and the concepts are the same).

 

-TGG

Posted

Sorry to keep bugging you xD, im reading the link you sent me and im sorting it out but the word

 

    @EventHandler

public void preInit(FMLInitializationEvent event){

    proxy.preinit();

    }

 

proxy is underlined in red and it has no suitable option

Posted

Do you have your proxies setup? 

like...

@SidedProxy(clientSide="com.yourModName.proxy.ClientProxy", serverSide = "com.yourModName.proxy.CommonProxy")
public static CommonProxy proxy;

 

As well as have the Client and Common Proxy classes that it points to.

 

And if you have those, then do you have a preinit method in your proxy class?

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.

Announcements



×
×
  • Create New...

Important Information

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