Stop mob spawning if not in game.