RealRTTV / nbtworkbench

A modern NBT Editor written in Rust.
Mozilla Public License 2.0
9 stars 1 forks source link

Crash when clicking tag then anywhere #6

Closed tryashtar closed 3 months ago

tryashtar commented 3 months ago

I haven't yet figured out how to add tags to the tree, because when I click a tag on the toolbar, it adds it to my mouse, then when I click anywhere else, it crashes with this output:

thread 'main' panicked at library/core/src/panicking.rs:219:5:
unsafe precondition(s) violated: hint::unreachable_unchecked must never be reached
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
RealRTTV commented 3 months ago

i am an idiot sometimes

RealRTTV commented 3 months ago

try it with a non-primitive tag and it'll work, I know what I did wrong

RealRTTV commented 3 months ago

god that's stupid of me