mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-11 17:35:05 +00:00
Adds missing armor to accessories (#38800)
This commit is contained in:
@@ -28,10 +28,10 @@
|
||||
pixel_y -= 8
|
||||
U.add_overlay(src)
|
||||
|
||||
if (islist(U.armor)) // This proc can run before /obj/Initialize has run for U and src,
|
||||
if (islist(U.armor) || isnull(U.armor)) // This proc can run before /obj/Initialize has run for U and src,
|
||||
U.armor = getArmor(arglist(U.armor)) // we have to check that the armor list has been transformed into a datum before we try to call a proc on it
|
||||
// This is safe to do as /obj/Initialize only handles setting up the datum if actually needed.
|
||||
if (islist(armor))
|
||||
if (islist(armor) || isnull(armor))
|
||||
armor = getArmor(arglist(armor))
|
||||
|
||||
U.armor = U.armor.attachArmor(armor)
|
||||
|
||||
Reference in New Issue
Block a user