I just spent hours debugging something that was ultimately caused by missing (and then later wrong-kind) tags, because CompoundTag and ListTag implicitly supply default values. In the interest of failing-fast instead of propagating corrupted data I have removed this behavior.
Note that the previous behavior is still possible with the explicit get*OrDefault methods.
Failing-fast-checks are very tedious to write (and easy to forget!) with the current implementation on the other hand.
Title says it all :)
I just spent hours debugging something that was ultimately caused by missing (and then later wrong-kind) tags, because
CompoundTag
andListTag
implicitly supply default values. In the interest of failing-fast instead of propagating corrupted data I have removed this behavior.Note that the previous behavior is still possible with the explicit
get*OrDefault
methods. Failing-fast-checks are very tedious to write (and easy to forget!) with the current implementation on the other hand.