Cubitect / cubiomes-viewer

An efficient graphical Minecraft seed finder and map viewer.
GNU General Public License v3.0
1.03k stars 61 forks source link

[Bug] Copy Selected Seed while hovering over the lower 48 bit copies a different 48 bit seed number #302

Open Jereaux opened 2 months ago

Jereaux commented 2 months ago

When right clicking on a seed in the seed list and clicking "Copy selected seed" the seed number that is copied can relate to the top 16 or lower 48 bit of the seed selected, but doesn't match the seed number. For example, copying the seed number -591253483051666085 while hovering over the "lower 48 bit" portion of the seed list generates the number 125443017422171 in the clipboard (lower 48 bit 7216fa7e355b). While this is a number in the 48-bit seed list, it's confusing as the selection says to copy selected seed.

This can also occur while hovering over the top 16, but results in the seed that is pasted having the 4 top 16 characters listed in the lower 48 bit. This results in the seed 63435 for the same seed as above (top 16 = f7cb).

I would think generally the easiest path may be to keep copy selected seed only copying the seed number where ever the cursor is hovering, and add a new right click menu item for "copy lower 48 bit seed" if that was the intended effect.

The first image is a seed list I was copying from, the 2nd is the seed list I was copying to. The seed at the top of the copied to list has the lower 48 bit that matches the top 16 of the original seed list. Other seeds listed just contain the same lower 48 bit.

Copied From Copied To

With the below image you can see the corresponding seed numbers I was trying to copy over.

Fixed