Fixes pawns sometimes not properly going to sleep when changing maps in async multiplayer.
[url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FNachoToast%2FMPCanSleepFix]Source Code[/url][github.com]
---
Implementation-wise this mod just checks if a pawn's [i]canSleepTick[/i] is more than 1,000 ticks above the game's current tick ([i]Find.TickManager.TicksGame[/i]), which can only happen (in vanilla at least) when a pawn has changed maps while playing in an async multiplayer environment. It's a quick-and-dirty fix, and doesn't account for any mods that may offset that value by more than 1,000 (I don't know of any, but you never know).