Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit number of Loki ring offsets and prevent cost calculation overflow #4686

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

TheRealWormbo
Copy link
Collaborator

Fixes #4681 by restricting the number of offsets to prevent the ring's NBT data from exceeding protocol limits. This also contains a fix to a potential integer overflow in the mana calculation that can happen within intended use of the ring already.

Fixes VazkiiMods#4681 by restricting the number of offsets to prevent the ring's NBT data from exceeding protocol limits. This also contains a fix to a potential integer overflow in the mana calculation that can happen within intended use of the ring already.
@TheRealWormbo TheRealWormbo merged commit 6a9c5a7 into VazkiiMods:1.20.x Jun 20, 2024
1 check passed
@TheRealWormbo TheRealWormbo deleted the 1.20-loki-limit branch June 20, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Loki ring can "NBT ban" a player due to unlimited offset list size
1 participant