Closed GeorgeFeldy closed 8 months ago
I discovered this while toying around with the possibility of a "Save & Exit" directly from the subworld - this should also include the player rejoining the exact same subworld upon joining a world. This is because in our mod (Macrocosm), we want the players to only be able to go back the same way they came.
Other related things to consider:
ReturnDestination
is set to the main menu.MovePlayerToSubworld
, but it would be nice to have a standard way to do that)
Fixed
cache.DrawMenu
still being called when exiting a subworld to the main menu (withReturnDestination
beingint.MinValue
) Once the subworld had finished saving and unloading, thecache
Subworld still had a value, so the DrawMenu method was still being drawn.Simply setting the cache value to null once the saving was complete fixed it.