ScalarVector1 / DragonLens

Modern, customizable, and community-driven debugging and cheat mod for TModLoader
24 stars 14 forks source link

Fix crash with WorldGen Preview #93

Closed Destructor-Ben closed 7 months ago

Destructor-Ben commented 8 months ago

When using with WorldGen preview there is a null ref crash since sometimes a GameTime variable used in a UIState isn't initialized until a world is loaded. WorldGen preview uses the in game map ui, which DragonLens has a ui state on, so the gametime variable isn't initialized yet. This causes a crash when a world is generated.