Fixed Cascade Shadow atlasing has failed, only one directional light can cast shadows at a time error that was occuring when trying to load a scene (made lighting flash briefly) to cache materials. Thanks Lunxara for noting the epilepsy risk and Pacoito for suggesting a fix.
Version 1.1.1
Fixed accidentally applying scene load/unload event patches early.
Version 1.1.0
Lock ship lever while a player is caching materials.
Suppress scene load/unload events while caching incase other mods hook into these.
Slightly optimized scene searches by only searching targetted scene (ie don't also search ScampleSceneRelay, the ship scene, unless it is the target).
Switched to patch ship lever's Start() instead of StartOfRound.Start() to try to reduce the chances of errors from other mods breaking the process and keeping lever locked indefinitely.
Still working on a solution to lock the ship lever until all materials are loaded for everyone. In the meantime, just wait a couple of seconds before pulling the lever after someone joins.