Jump to content

[1.7.10][SOLVED] openGui Problem (onBlockActivated)


Recommended Posts

Posted

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 :)

Posted

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.

Posted

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.

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.