Jump to content

Recommended Posts

Posted

I have followed coolAlias's packet tutorial, and I set it up so a packet is sent to the server when a key is pressed. When the key was pressed, I encountered this crash:

 

  Reveal hidden contents

 

And my code:

The Packet Dispatcher:

https://bitbucket.org/The_Fireplace/unlogic-ii/src/fed9cdf24bd839485aac7f9ce3cee887bb761449/src/main/java/the_fireplace/unlogicii/network/PacketDispatcher.java?at=master

 

Any other code you need to see is there in the repository. Let me know if you have any other questions. Any help is very much appreciated.

If I helped please press the Thank You button.

 

Check out my mods at http://www.curse.com/users/The_Fireplace/projects

Posted

So where exactly are you calling "registerPackets()" ?

 

You need to call it in preInit.

 

EDIT More info;

This error occurs when there is no packet registered to given packetId - which happens because you forgot to call it (register it).

  Quote

1.7.10 is no longer supported by forge, you are on your own.

Posted

Thats exactly the error, I just looked through the preInit

 

Also dont Do

if(event.getSide().isClient()){
		registerItemRenders();
	} 

Please. Use proxies thats what they are made for.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.