Update spawnManager.js