Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-135506

Experience saves as a short, used as integer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.13
    • None
    • Unconfirmed
    • (Unassigned)

      Experience orbs operate on integer values, and players can use vanilla commands to spawn an exp orb with an exact value.

       

      Spawning an orb at 100k is valid, however if that orb is unloaded, the NBT data saves it as a short, corrupting the value.

      Fixing is as trivial as changing the NBT set/get calls to Int for Value instead of Short

            Unassigned Unassigned
            aikar Aikar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: