Closed IAmBatby closed 7 months ago
The two string checks are only for the base game levels all (LE & LEC) custom worlds use the same empty scene to then spawn all world items. The custom levels are checked via the onPlanet function which is setup at plugin startup.
LethalLevelLoader uses custom scenes which will not be supported by this code.
Well, that is a plugin that I never heard of. I will take a look at it and add support for it in the future.
I wanted to make a note on this as I was the one who originally reported this, assuming it was an LLL issue, that if you try to test this for yourself, it's easily replicable by downloading any moon that uses LLL, Starlancer moons for example, land the ship. You'll notice the ability to interact with the screen is missing. Nothing catastrophically explodes but it does lose touch screen functionality the entire time you're landed on the moon. When returning to a vanilla moon, the mod functions as it should.
Just figured I'd add this in case it helps.
Fixed in v1.1.0
This code relies on the assumption all levels have "level" in their name, which is not true for custom level scenes.
I suggest you get the scene based on StartOfRound.currentLevel.sceneName and check if said
Scene
isLoaded
.