From a91c32a5e7a1156850d30dd8999cd282426b3865 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Thu, 21 Jul 2022 13:10:59 +1200 Subject: [PATCH] Fix PDA ID light (#9938) --- Content.Shared/PDA/SharedPDASystem.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Content.Shared/PDA/SharedPDASystem.cs b/Content.Shared/PDA/SharedPDASystem.cs index eae10b1926..12ed8e6e45 100644 --- a/Content.Shared/PDA/SharedPDASystem.cs +++ b/Content.Shared/PDA/SharedPDASystem.cs @@ -38,9 +38,7 @@ namespace Content.Shared.PDA protected virtual void OnItemInserted(EntityUid uid, PDAComponent pda, EntInsertedIntoContainerMessage args) { - if (!pda.Initialized) return; - - if (args.Container.ID == pda.IdSlot.ID) + if (args.Container.ID == PDAComponent.PDAIdSlotId) pda.ContainedID = CompOrNull(args.Entity); UpdatePDAAppearance(pda);