Jump to content

Recommended Posts

Posted

How would i go about sending a packet when a certain event occurs, it crashes every time

 

Main mod:

 

  Reveal hidden contents

 

 

Packet Class:

 

  Reveal hidden contents

 

 

Event Handler:

 

  Reveal hidden contents

 

 

Crash Log:

 

  Reveal hidden contents

 

Posted
  On 7/14/2015 at 5:31 AM, coolAlias said:

You are registering your packet again on the key press, instead of sending it - this is waaaaaay wrong. Only ever register your packet ONCE.

 

To send it, you need to use your simple network wrapper instance:

// this sends to the server, obviously
SummonCraft.network.sendToServer(new YourMessageClass(...));

 

Oh! Thanks!!!!

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.