app.world().is_resource_added::<T>() panics instead of returning false #2828
Labels
A-ECS
Entities, components, systems, and events
C-Bug
An unexpected or incorrect behavior
D-Good-First-Issue
Nice and easy! A great choice to get started with Bevy
Bevy version
0.5
Operating system & version
Arch(tho not relevant)
What you did
Calling
app.world().is_resource_added::<T>()
on a resource that wasn't added.What you expected to happen
function to return false
What actually happened
It paniced
Additional information
Crashed at this line
because of the
unwrap()
at the end.The text was updated successfully, but these errors were encountered: