RealRTTV / nbtworkbench

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

Crash when editing wrong type into list #9

Closed tryashtar closed 3 months ago

tryashtar commented 3 months ago

Take a list, then right-click it and go into external text editor SNBT mode. Like a list of longs for example. Change one of them to be the wrong type, like a float, then save. The program 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

why didnt i handle this