Revert "Formatting, remove redundant setSpawnLocation and use setCancelled()"

This reverts commit fd2a746acb15e6bd285ac44ed6598c0f17e3a02e.