Spongeapi: ItemEnchantment level overflow

Created on 25 Aug 2016  路  3Comments  路  Source: SpongePowered/SpongeAPI

ItemEnchantment throws an exception in the constructor for negative levels, but allows values greater than Short.MAX_VALUE which is pretty much the Minecraft limit. This results in the value overflowing to a negative level, which causes other problems in SpongeAPI (see #1337)

I'm not sure if this is a SpongeAPI concern or an implementation concern, but I'm starting this issue out here.

tl;dr
overflow

data

Most helpful comment

Love the tldr

All 3 comments

Love the tldr

Just understood the tldr. It's not just a funny picture, it has a real meaning.

Spoiler (base64 decode it): b3ZlcmZsb3c=

Was this page helpful?
0 / 5 - 0 ratings