Skip to content

Add toggle for enchant level clamping#966

Merged
katekerllenevich merged 2 commits into
PurpurMC:ver/1.18.2from
12emin34:enchant-level-clamping-config
May 9, 2022
Merged

Add toggle for enchant level clamping#966
katekerllenevich merged 2 commits into
PurpurMC:ver/1.18.2from
12emin34:enchant-level-clamping-config

Conversation

@12emin34

Copy link
Copy Markdown
Member

By default, enchantment levels are stored as bytes and clamped to level 255, this patch allows storing them as shorts which would allow levels to go to 32767.

NOTE: the client will not display levels higher than 255.

@katekerllenevich katekerllenevich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@katekerllenevich katekerllenevich merged commit ddcb378 into PurpurMC:ver/1.18.2 May 9, 2022
@12emin34 12emin34 deleted the enchant-level-clamping-config branch July 7, 2023 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants