Minor code clean up in magnet controller (#29074)
Minor code clean up in magnet controller (#29074)


infinitystation/-tg-station,Xhuis/tgfork,JStheguy/tgstation,duncathan/-tg-station,anconfuzedrock/tgstation,JJRcop/-tg-station,XDTM/tgstation,Jalleo/-tg-station,lordpidey/-tg-station,Tacolizard/tgstation,Incoming5643/-tg-station,Memendia/HippieStation,Cyberboss/tgstation,Jalleo/-tg-station,tgstation/-tg-station,TehZombehz/-tg-station,HippieStation/HippieStation,GuyonBroadway/HippieStation,JJRcop/-tg-station,JStheguy/tgstation,NicholasM10/-tg-station,loqoman/tgstation,MrStonedOne/tgstation,ChangelingRain/-tg-station,Y0SH1M4S73R/-tg-station,ChangelingRain/-tg-station,Mark9013100/tgstation-m9,GuyonBroadway/HippieStation,infinitystation/-tg-station,Thunder12345/-tg-station,MicroWorldwide/SS13-TG-station,kingofkosmos/-tg-station,QualityVan/tgstation,NicholasM10/-tg-station,Fox-McCloud/-tg-station,xxalpha/-tg-station,erwgd/-tg-station,CosmicScientist/-tg-station,GuyonBroadway/HippieStation,Profakos/tgstation,CPTANT/-tg-station,xxalpha/-tg-station,MicroWorldwide/SS13-TG-station,Penguaro/tgstation,4dplanner/tgstation,AnturK/-tg-station,Razharas/-tg-station,securitycopper/-tg-station,Profakos/tgstation,McBawbaggings/HippieStation,anconfuzedrock/tgstation,neersighted/tgstation,tgstation/tgstation,JJRcop/-tg-station,Fox-McCloud/-tg-station,Memendia/HippieStation,ChangelingRain/-tg-station,ZioZan/tgstation,lzimann/tgstation,Osokorn/tgstation,tgstation/-tg-station,HippieStation/HippieStation,securitycopper/-tg-station,Osokorn/tgstation,erwgd/-tg-station,Poojawa/tgstation-fork,WJohn/-tg-station,kevinz000/-tg-station,kevinz000/-tg-station,InsaneHyena/tgstation,WJohn/-tg-station,JJRcop/tgstation,CPTANT/-tg-station,Crexfu/tgstation,Shadowlight213/-tg-station,chickenboy10/tgstation,AnturK/-tg-station,Jordie0608/tgstation,PKPenguin321/-tg-station,optimumtact/-tg-station,NicholasM10/-tg-station,Shadowlight213/-tg-station,McBawbaggings/HippieStation,XDTM/tgstation,coiax/-tg-station,TalkingCactus/tgstation,XDTM/tgstation,JJRcop/tgstation,Y0SH1M4S73R/-tg-station,Profakos/tgstation,OBA-code/tgstation,4dplanner/tgstation,riftstation/riftstation,tgstation/-tg-station,CosmicScientist/-tg-station,Mark9013100/tgstation-m9,ChangelingRain/-tg-station,Shadowlight213/-tg-station,MrStonedOne/tgstation,Xhuis/tgfork,Razharas/-tg-station,JJRcop/tgstation,QualityVan/tgstation,Profakos/tgstation,Niknakflak/-tg-station,dannno/-tg-station,Cyberboss/tgstation,Osokorn/tgstation,Thunder12345/-tg-station,Anonus/-tg-station,neersighted/tgstation,Cyberboss/tgstation,Jalleo/-tg-station,Arianya/tgstation,Bawhoppen/-tg-station,Jalleo/-tg-station,Shadowlight213/-tg-station,nicbn/tgstation,coiax/-tg-station,Y0SH1M4S73R/-tg-station,Tacolizard/tgstation,GuyonBroadway/HippieStation,coiax/-tg-station,Buggy123/-tg-station,HippieStation/HippieStation,ShizCalev/tgstation,ToGWtF/yogstation,MicroWorldwide/SS13-TG-station,octareenroon91/-tg-station,ShizCalev/tgstation,NicholasM10/-tg-station,JJRcop/-tg-station,optimumtact/-tg-station,Thunder12345/-tg-station,ZioZan/tgstation,Profakos/tgstation,JStheguy/tgstation,CPTANT/-tg-station,loqoman/tgstation,xxalpha/-tg-station,Jordie0608/tgstation,GunHog/-tg-station,Razharas/-tg-station,Robustin/tgstation,Cyberboss/tgstation,Jordie0608/-tg-station,MrStonedOne/-tg-station,Anonus/-tg-station,Jordie0608/-tg-station,WJohn/-tg-station,infinitystation/-tg-station,Incoming5643/-tg-station,kevinz000/-tg-station,Jalleo/-tg-station,JJRcop/tgstation,Aranclanos/-tg-station,Arianya/tgstation,infinitystation/-tg-station,MrStonedOne/-tg-station,Mark9013100/tgstation-m9,CPTANT/-tg-station,JStheguy/tgstation,TheVekter/-tg-station,infinitystation/-tg-station,riftstation/riftstation,Aranclanos/-tg-station,Buggy123/-tg-station,octareenroon91/-tg-station,WJohn/-tg-station,loqoman/tgstation,Xhuis/-tg-station,ZioZan/tgstation,tgstation/tgstation,ChangelingRain/-tg-station,Mark9013100/tgstation-m9,MicroWorldwide/SS13-TG-station,lzimann/-tg-station,Jalleo/-tg-station,infinitystation/-tg-station,Niknakflak/-tg-station,CosmicScientist/-tg-station,SamuelRowe/-tg-station,AnturK/-tg-station,paprka/-tg-station,Cyberboss/tgstation,MrStonedOne/tgstation,4dplanner/tgstation,paprka/-tg-station,xxalpha/-tg-station,WJohn/-tg-station,PKPenguin321/-tg-station,optimumtact/-tg-station,Xhuis/tgfork,Cruix/-tg-station,Xhuis/tgfork,XDTM/tgstation,Xhuis/tgfork,PKPenguin321/-tg-station,McBawbaggings/HippieStation,riftstation/riftstation,kingofkosmos/-tg-station,Razharas/-tg-station,riftstation/riftstation,Bawhoppen/-tg-station,nicbn/tgstation,TheVekter/-tg-station,TheVekter/-tg-station,Buggy123/-tg-station,kingofkosmos/-tg-station,anconfuzedrock/tgstation,securitycopper/-tg-station,Iamgoofball/-tg-station,QualityVan/tgstation,Buggy123/-tg-station,anconfuzedrock/tgstation,Cruix/-tg-station,octareenroon91/-tg-station,dannno/-tg-station,ToGWtF/yogstation,loqoman/tgstation,riftstation/riftstation,lordpidey/-tg-station,ShizCalev/tgstation,TehZombehz/-tg-station,CosmicScientist/-tg-station,Cruix/-tg-station,Robustin/tgstation,NicholasM10/-tg-station,F-OS/tgstation,lordpidey/-tg-station,xxalpha/-tg-station,loqoman/tgstation,ShizCalev/tgstation,Bawhoppen/-tg-station,PKPenguin321/-tg-station,Penguaro/tgstation,F-OS/tgstation,Crexfu/tgstation,F-OS/tgstation,duncathan/-tg-station,Tacolizard/tgstation,Xhuis/tgfork,Razharas/-tg-station,securitycopper/-tg-station,Y0SH1M4S73R/-tg-station,feemjmeem/-tg-station,Cruix/-tg-station,coiax/-tg-station,paprka/-tg-station,CPTANT/-tg-station,feemjmeem/-tg-station,securitycopper/-tg-station,MrStonedOne/-tg-station,nicbn/tgstation,Robustin/tgstation,neersighted/tgstation,Niknakflak/-tg-station,Incoming5643/-tg-station,InsaneHyena/tgstation,Incoming5643/-tg-station,feemjmeem/-tg-station,Buggy123/-tg-station,lordpidey/-tg-station,chickenboy10/tgstation,neersighted/tgstation,feemjmeem/-tg-station,TehZombehz/-tg-station,lordpidey/-tg-station,HippieStation/HippieStation,InsaneHyena/tgstation,Aranclanos/-tg-station,ohnopigeons/tgstation,F-OS/tgstation,McBawbaggings/HippieStation,Fox-McCloud/-tg-station,SamuelRowe/-tg-station,Robustin/tgstation,ohnopigeons/tgstation,Penguaro/tgstation,riftstation/riftstation,Jordie0608/tgstation,optimumtact/-tg-station,loqoman/tgstation,Cyberboss/tgstation,Arianya/tgstation,NicholasM10/-tg-station,riftstation/riftstation,Profakos/tgstation,neersighted/tgstation,QualityVan/tgstation,Poojawa/tgstation-fork,neersighted/tgstation,McBawbaggings/HippieStation,Memendia/HippieStation,CosmicScientist/-tg-station,Incoming5643/-tg-station,tgstation/-tg-station,JJRcop/tgstation,Y0SH1M4S73R/-tg-station,JStheguy/tgstation,dannno/-tg-station,lordpidey/-tg-station,Cruix/-tg-station,Shadowlight213/-tg-station,tgstation/tgstation,TheRealGLH/-tg-station,Jordie0608/tgstation,TalkingCactus/tgstation,AnturK/-tg-station,securitycopper/-tg-station,chickenboy10/tgstation,F-OS/tgstation,octareenroon91/-tg-station,Shadowlight213/-tg-station,optimumtact/-tg-station,nicbn/tgstation,feemjmeem/-tg-station,JJRcop/tgstation,xxalpha/-tg-station,Incoming5643/-tg-station,paprka/-tg-station,Tacolizard/tgstation,Razharas/-tg-station,Y0SH1M4S73R/-tg-station,lzimann/tgstation,Bawhoppen/-tg-station,OBA-code/tgstation,CosmicScientist/-tg-station,TehZombehz/-tg-station,Cyberboss/tgstation,duncathan/-tg-station,lordpidey/-tg-station,Tacolizard/tgstation,F-OS/tgstation,TehZombehz/-tg-station,Bawhoppen/-tg-station,Niknakflak/-tg-station,NicholasM10/-tg-station,AnturK/-tg-station,Xhuis/-tg-station,lzimann/tgstation,GunHog/-tg-station,Poojawa/tgstation-fork,infinitystation/-tg-station,Tacolizard/tgstation,Jordie0608/tgstation,4dplanner/tgstation,CosmicScientist/-tg-station,kingofkosmos/-tg-station,Profakos/tgstation,PKPenguin321/-tg-station,XDTM/tgstation,TehZombehz/-tg-station,Poojawa/tgstation-fork,ShizCalev/tgstation,OBA-code/tgstation,TheRealGLH/-tg-station,optimumtact/-tg-station,Poojawa/tgstation-fork,Arianya/tgstation,Robustin/tgstation,Shadowlight213/-tg-station,CosmicScientist/-tg-station,JStheguy/tgstation,Xhuis/-tg-station,Memendia/HippieStation,Aranclanos/-tg-station,CPTANT/-tg-station,securitycopper/-tg-station,Anonus/-tg-station,QualityVan/tgstation,Cruix/-tg-station,Thunder12345/-tg-station,Memendia/HippieStation,Mark9013100/tgstation-m9,MrStonedOne/tgstation,GuyonBroadway/HippieStation,Buggy123/-tg-station,lordpidey/-tg-station,tgstation/tgstation,Y0SH1M4S73R/-tg-station,4dplanner/tgstation,JStheguy/tgstation,Thunder12345/-tg-station,anconfuzedrock/tgstation,erwgd/-tg-station,neersighted/tgstation,McBawbaggings/HippieStation,MicroWorldwide/SS13-TG-station,HippieStation/HippieStation,kevinz000/-tg-station,XDTM/tgstation,SamuelRowe/-tg-station,kingofkosmos/-tg-station,WJohn/-tg-station,anconfuzedrock/tgstation,Poojawa/tgstation-fork,4dplanner/tgstation,TheRealGLH/-tg-station,MrStonedOne/tgstation,HippieStation/HippieStation,CPTANT/-tg-station,F-OS/tgstation,OBA-code/tgstation,duncathan/-tg-station,optimumtact/-tg-station,lzimann/-tg-station,Fox-McCloud/-tg-station,McBawbaggings/HippieStation,MrStonedOne/tgstation,kingofkosmos/-tg-station,Thunder12345/-tg-station,MicroWorldwide/SS13-TG-station,tgstation/tgstation,AnturK/-tg-station,ShizCalev/tgstation,Tacolizard/tgstation,kevinz000/-tg-station,SamuelRowe/-tg-station,Niknakflak/-tg-station,Thunder12345/-tg-station,GunHog/-tg-station,Poojawa/tgstation-fork,InsaneHyena/tgstation,Fox-McCloud/-tg-station,kevinz000/-tg-station,4dplanner/tgstation,PKPenguin321/-tg-station,kevinz000/-tg-station,xxalpha/-tg-station,lzimann/-tg-station,AnturK/-tg-station,TheVekter/-tg-station,Tacolizard/tgstation,TehZombehz/-tg-station,Aranclanos/-tg-station,Arianya/tgstation,feemjmeem/-tg-station,nicbn/tgstation,nicbn/tgstation,ohnopigeons/tgstation,ohnopigeons/tgstation,Robustin/tgstation,Crexfu/tgstation,Bawhoppen/-tg-station,Fox-McCloud/-tg-station,PKPenguin321/-tg-station,GunHog/-tg-station,Arianya/tgstation,Jalleo/-tg-station,loqoman/tgstation,Razharas/-tg-station,infinitystation/-tg-station,Crexfu/tgstation,GuyonBroadway/HippieStation,Razharas/-tg-station,TalkingCactus/tgstation,ToGWtF/yogstation,paprka/-tg-station,Mark9013100/tgstation-m9,ChangelingRain/-tg-station,Bawhoppen/-tg-station,anconfuzedrock/tgstation,kingofkosmos/-tg-station,PKPenguin321/-tg-station,MicroWorldwide/SS13-TG-station,Incoming5643/-tg-station,Jordie0608/-tg-station,Jalleo/-tg-station,Aranclanos/-tg-station,MrStonedOne/tgstation,Memendia/HippieStation,Shadowlight213/-tg-station,coiax/-tg-station,xxalpha/-tg-station,Iamgoofball/-tg-station,HippieStation/HippieStation,4dplanner/tgstation,tgstation/tgstation,TehZombehz/-tg-station,Memendia/HippieStation,Iamgoofball/-tg-station,riftstation/riftstation,loqoman/tgstation,Xhuis/tgfork,Anonus/-tg-station,Mark9013100/tgstation-m9,Jordie0608/-tg-station,GuyonBroadway/HippieStation,coiax/-tg-station,Incoming5643/-tg-station,GuyonBroadway/HippieStation,dannno/-tg-station,lzimann/-tg-station,paprka/-tg-station,feemjmeem/-tg-station,Fox-McCloud/-tg-station,Niknakflak/-tg-station,Cruix/-tg-station,Buggy123/-tg-station,MrStonedOne/-tg-station,MrStonedOne/tgstation,Aranclanos/-tg-station,tgstation/tgstation,TalkingCactus/tgstation,CPTANT/-tg-station,neersighted/tgstation,Penguaro/tgstation,feemjmeem/-tg-station,McBawbaggings/HippieStation,Y0SH1M4S73R/-tg-station,JJRcop/tgstation,TheVekter/-tg-station,ChangelingRain/-tg-station,Buggy123/-tg-station,TheVekter/-tg-station,Aranclanos/-tg-station,ToGWtF/yogstation,Cruix/-tg-station,XDTM/tgstation,Jordie0608/tgstation,F-OS/tgstation,Xhuis/-tg-station,Arianya/tgstation,GunHog/-tg-station,Xhuis/tgfork,GunHog/-tg-station,Bawhoppen/-tg-station,Jordie0608/tgstation,Memendia/HippieStation,QualityVan/tgstation,nicbn/tgstation,Robustin/tgstation,tgstation/tgstation,ShizCalev/tgstation,ChangelingRain/-tg-station,coiax/-tg-station,ShizCalev/tgstation,Robustin/tgstation,NicholasM10/-tg-station,paprka/-tg-station,WJohn/-tg-station,GunHog/-tg-station,kevinz000/-tg-station,TheVekter/-tg-station,TheRealGLH/-tg-station,MicroWorldwide/SS13-TG-station,paprka/-tg-station,chickenboy10/tgstation,securitycopper/-tg-station,Jordie0608/tgstation,octareenroon91/-tg-station,Niknakflak/-tg-station,Iamgoofball/-tg-station,QualityVan/tgstation