Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.16.5] Tracked IntArray max is 32767 (Short Max Value)


BeardlessBrady
 Share

Recommended Posts

Hello. I am tracking an Int Array to sync the data value between server and client. For some reason the tracked IntArray's max value is the Short Max Value, 32767 and when passing that, it overloads.

https://github.com/Beardlessbrady/Currency-Mod/blob/master-1.16/src/main/java/com/beardlessbrady/gocurrency/blocks/vending/VendingContainer.java#L113

Is this normal, if not any ideas what could be causing this? The value is fine when being set up until I get the value from the client

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
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.