MinusKube / Netherboard

Scoreboard API for your Minecraft Sponge and Bukkit Plugins, supporting all versions from 1.7 to 1.19.
Apache License 2.0
77 stars 21 forks source link

After changing score of same name, if we change the old score, the name disappears #4

Closed MinusKube closed 5 years ago

MinusKube commented 5 years ago

Let's say you have a given score named Hello World with the score 5, then, later, you change this score to 6, it will works and it will get the new score correctly. But if after that, you add a new score with any name, like dlroW olleH, then you give it the same score than the old first score, 5, the score Hello World will disappear.

(Guess I just lost everyone)

Example for reproduction:

// Gives "Hello World - 5", correct
board.set("Hello World", 5);

// Gives "Hello World - 6", correct
board.set("Hello World", 6);

// Gives "dlroW olleH - 5", incorrect
// Expected output:
//     Hello World - 6
//     dlroW olleH - 5
board.set("dlroW olleH", 5); 
MinusKube commented 5 years ago

And here it is, fixed in 1.1.0 :)