Posted January 11, 201312 yr Hi just two small issues that I can't seem to fix: First of all quite often (maybe 1 out of 10 times) my textures fail to load. The only message I get is "texture couldn't be preloaded" or something along those lines. f3 + t fixes the issue right away but it's quite annoying. Does anyone know what might be causing that? Secondly I have one recipe that refuses to work in multiplayer but works fine in single player. The recipe uses a full crafting bench of a mod item to produce 1 coal. I've tried having the recipe in post init and that didn't change anything. Here is my main class: http://pastebin.com/KJ8jpC7s and the recipe itself: @PostInit public void postInit(FMLPostInitializationEvent event){ GameRegistry.addRecipe(new ItemStack(Item.coal, 1), new Object[]{"XXX", "XXX", "XXX", 'X', (Item)ligniteCoal});//Recipe only works if added here for some reason } and my proxy: package exterminatorJeff.undergroundBiomes.client; import net.minecraftforge.client.MinecraftForgeClient; import exterminatorJeff.undergroundBiomes.common.*; public class ClientProxy extends CommonProxy{ @Override public void registerRenderThings(){ MinecraftForgeClient.preloadTexture("/undergroundBiomes/BlockTextures.png"); MinecraftForgeClient.preloadTexture("/undergroundBiomes/Items.png"); } } Thanks!
January 11, 201312 yr GameRegistry.addRecipe(new ItemStack(Item.coal, 1), "XXX", "XXX", "XXX", 'X', (Item)ligniteCoal); Try that it should work in @int
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.