Posted August 7, 201411 yr Hello everyone! I have some problem with a custom furnace that I have been making, that whenever I right click on it, it just crashes, where as it's supposed to open a gui! And I honestly cannot find out why, I have searched around the web for so long now. I really hope you guys can help me figure out what is wrong, thank you so much Here is the full project on github : https://github.com/Krealle/MinecraftForgeMod/tree/master/mod The main files for the furnace are: handler/RedGuiHandler block/RedFurnace <-- Where the error happens line 62 block/RedBlocks gui/GuiRedFurnace tile_entity/TileEntityRedFurnace And here is the crash log: http://pastebin.com/7DqjrQR5 Again thank you so much
August 8, 201411 yr There is a gui handler in the com.krealle.handler package and it's coded correctly, but I don't see any calls to the proxy.registerNetworkStuff() function that registers it anywhere in your main class. So, my guess is that it's never actually registered to forge and that's why you're getting an error as though you didn't have one. Technically, you don't.
August 8, 201411 yr This is the way to register it NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GUIHandler());
August 8, 201411 yr Author There is a gui handler in the com.krealle.handler package and it's coded correctly, but I don't see any calls to the proxy.registerNetworkStuff() function that registers it anywhere in your main class. So, my guess is that it's never actually registered to forge and that's why you're getting an error as though you didn't have one. Technically, you don't. Thank you so much! I totally forgot to check for that
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.