It is always the line immediately above the comment.

From memory, again some of this is to ensure references to entities and components are released completely. It probably needs a big cleanup, but it is all very low priority as long as it works. It is also a matter of me lazily using the RegisterInputSystem load process in a hacky way rather than repeating code.

Generally I would probably respond by doing a cleanup and re-architect of these bits, but the timing is off. I'll prioritise it for after world gen, along with the switch of math library. Would you kindly add a TODO to remove this and handle refreshing of core game state at the engine level? Cheers.