Pythonschlange Posted August 9, 2015 Author Posted August 9, 2015 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! Quote
Pythonschlange Posted August 10, 2015 Author Posted August 10, 2015 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: Reveal hidden contents @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: Reveal hidden contents @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* Quote
delpi Posted August 10, 2015 Posted August 10, 2015 Those two look identical. What did you find? Quote Long time Bukkit & Forge Programmer Happy to try and help
Choonster Posted August 10, 2015 Posted August 10, 2015 On 8/10/2015 at 12:49 PM, delpi said: 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. Quote 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.
delpi Posted August 10, 2015 Posted August 10, 2015 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. Quote Long time Bukkit & Forge Programmer Happy to try and help
Recommended Posts
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.