Jump to content

[1.8] [SOLVED] Invalid Packet string size error


Himself12794

Recommended Posts

I'm trying to send information to the server about location information from casting a spell client side. I'm getting the entity the player is looking at, casting the spell on that target, then telling the server to do the same. The only problem is that when the server (dedicated) receives the packet, I get a String exceeds maximum string size 22 > 20. However I am not sending any Strings. Here's my packet handler and message code on github:

 

https://github.com/Himself12794/powersAPI/blob/master/src/main/java/com/himself12794/powersapi/network/CastSpellInstantServer.java

 

and here's the SpellInstant class:

 

https://github.com/Himself12794/powersAPI/blob/master/src/main/java/com/himself12794/powersapi/spell/SpellInstant.java

 

I only get this error on a dedicated server, otherwise it works as it should. Perhaps I'm sending the packet incorrectly?

With all due respect, sir: I do, what I do, the way I do it. ~ MacGyver

Link to comment
Share on other sites

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.

×
×
  • Create New...

Important Information

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