refactor: Only sort named machine lists at mapload end. (#27081)

This commit is contained in:
warriorstar-orion
2024-10-22 09:33:16 +00:00
committed by GitHub
parent 7f7f9c6e0e
commit 4c937d62ff
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -131,7 +131,6 @@
armor = list(MELEE = 20, BULLET = 20, LASER = 10, ENERGY = 100, BOMB = 30, RAD = 100, FIRE = 90, ACID = 50)
..()
GLOB.apcs += src
GLOB.apcs = sortAtom(GLOB.apcs)
wires = new(src)
@@ -179,6 +178,7 @@
A.powernet.powernet_apc = src
if(!mapload)
GLOB.apcs = sortAtom(GLOB.apcs)
return
electronics_state = APC_ELECTRONICS_SECURED