diff --git a/code/game/objects/structures/door_assembly.dm b/code/game/objects/structures/door_assembly.dm index 2a7ca416341..db202e16461 100644 --- a/code/game/objects/structures/door_assembly.dm +++ b/code/game/objects/structures/door_assembly.dm @@ -531,7 +531,7 @@ obj/structure/door_assembly playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1) user.visible_message("[user] adds [G.name] to the airlock assembly.", "You start to install [G.name] into the airlock assembly.") if(do_after(user, 40)) - if(C.get_amount() < 1 || mineral) return + if(G.get_amount() < 1 || mineral) return user << "You've installed reinforced glass windows into the airlock assembly." G.use(1) mineral = "glass" @@ -554,7 +554,7 @@ obj/structure/door_assembly playsound(src.loc, 'sound/items/Crowbar.ogg', 100, 1) user.visible_message("[user] adds [G.name] to the airlock assembly.", "You start to install [G.name] into the airlock assembly.") if(do_after(user, 40)) - if(C.get_amount() < 2 || mineral) return + if(G.get_amount() < 2 || mineral) return user << "You've installed [M] plating into the airlock assembly." G.use(2) mineral = "[M]"