Skip to content

Commit

Permalink
Update SetOutfitCommand.cs (#941)
Browse files Browse the repository at this point in the history
# Description

I hate when people don't use nullables correctly, and SOMEHOW a null
reference is still being handed into IPCs.
  • Loading branch information
VMSolidus authored Sep 20, 2024
1 parent 68772a8 commit 981c4f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Content.Server/Administration/Commands/SetOutfitCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using Robust.Shared.Prototypes;
using Content.Server.Silicon.IPC;
using Content.Shared.Radio.Components;
using Content.Shared.Cluwne;

namespace Content.Server.Administration.Commands
{
Expand Down Expand Up @@ -129,6 +130,8 @@ public static bool SetOutfit(EntityUid target, string gear, IEntityManager entit
}
}

if (entityManager.HasComponent<CluwneComponent>(target))
return true; //Fuck it, nuclear option for not Cluwning an IPC because that causes a crash that SOMEHOW ignores null checks.
if (entityManager.HasComponent<EncryptionKeyHolderComponent>(target))
{
var encryption = new InternalEncryptionKeySpawner();
Expand Down

0 comments on commit 981c4f6

Please sign in to comment.