Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

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


Pythonschlange
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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*

Link to comment
Share on other sites

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.

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.

Guest
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.