Project MMO

Project MMO

10M Downloads

Enchantment Requirements Out-By-One

SomewhatDamaged opened this issue ยท 0 comments

commented

Describe the bug
The array in the levels area of Enchantment requirements should have the zeroth item in the array (0th) be the requirement for level 1 of the enchantment. Right now it's the first item that's the requirement for level 1, and so on.

Expected behavior
The zeroth item in the array's requirements should be the requirement for level 1 (as per wiki).

To Reproduce

{
    "override": true,
    "levels": [
        {
            "combat": 3
        },
        {
            "combat": 7
        },
        {
            "combat": 11
        },
        {
            "combat": 15
        },
        {
            "combat": 19
        }
    ]
}

Steps to reproduce the behavior:

  1. Give Sharpness some requirements.
  2. Try adding them.
  3. See error

Screenshots
Using the example:
image
image

Versions:

  • Minecraft: 1.20.1
  • Loader: Forge-47.1.3
  • PMMO: 1.20.1-1.2.15

Additional context

vG1QvxG.-.Imgur.mp4