Jump to content

[1.7.10][SOLVED] Problem with custom rendered Block after Exporting to.jar


Recommended Posts

Posted

I tested a bit futher and it seems that the debug-mode in eclipse always and the exported .jar file sometimes completely bypassing the

public void renderItem(ItemRenderType type, ItemStack item, Object... data) 

method. And again, if someone as some ideas on whats going on with that: reply please!

Posted

Oh! My! God! I solved the problem. I don't even need to explain what I did:

 

Here a part of my old main.java:

 

@EventHandler

public void preInit(FMLPreInitializationEvent event){

allobjects();

 

allRegisters();

 

Recipes_Items.allItemRecipes();

 

Recipes_Blocks.allBlockRecipes();

}

 

@EventHandler

public void load(FMLPreInitializationEvent event){

 

}

 

@EventHandler

public void postInit(FMLPreInitializationEvent event){

proxy.registerRenders();

}

 

 

and a part of the main.java as it is now:

 

@EventHandler

public void preInit(FMLPreInitializationEvent event ){

allobjects();

 

allRegisters();

 

Recipes_Items.allItemRecipes();

 

Recipes_Blocks.allBlockRecipes();

}

 

@EventHandler

public void load(FMLInitializationEvent event){

 

}

 

@EventHandler

public void postInit(FMLPostInitializationEvent event){

proxy.registerRenders();

}

 

 

Thanks for the help...

There are no words that would describe how silly I feel at the moment... *faceplam*

Posted

Those two look identical.  What did you find?

The original code had

FMLPreInitializationEvent

as the parameter for all three methods instead of each method having the appropriate event parameter.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

Ah, thanks.  I looked at that for a few minutes and my mind just wanted to read what it thought should be there and I couldn't see it.

Long time Bukkit & Forge Programmer

Happy to try and help

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.