Trouv / bevy_ecs_ldtk

ECS-friendly ldtk plugin for bevy, leveraging bevy_ecs_tilemap
Other
627 stars 73 forks source link

Don't set level selection if the level isn't loaded yet #281

Closed MScottMcBee closed 5 months ago

MScottMcBee commented 6 months ago

Fixes #232

Added a check so that when applying LevelSelection, there's a check to make sure the external level is loaded.

Works for my game and all tests pass, not sure if this has any weird knock-on effects.

MScottMcBee commented 5 months ago

Thanks for the feedback and sorry for the long response time. I switched over to use get_recursive_dependency_load_state and wow is that a lot cleaner.