Skip to content

Commit

Permalink
Fix Uncloneable Feedback Message (#926)
Browse files Browse the repository at this point in the history
# Description

Clone Pod isn't the one that has the ability to say the message, the
cloning console does. This fixes a bug where Uncloneable messages aren't
being played.

# Changelog

:cl:
- fix: Cloning Consoles will now correctly state when a body has the
Uncloneable trait.
  • Loading branch information
VMSolidus authored Sep 18, 2024
1 parent 46cbafa commit 364b237
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Content.Server/Cloning/CloningSystem.Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ private bool CheckUncloneable(EntityUid uid, EntityUid bodyToClone, CloningPodCo

if (ev.Cancelled && ev.CloningFailMessage is not null)
{
_chatSystem.TrySendInGameICMessage(uid,
Loc.GetString(ev.CloningFailMessage),
InGameICChatType.Speak, false);
if (clonePod.ConnectedConsole is not null)
_chatSystem.TrySendInGameICMessage(clonePod.ConnectedConsole.Value,
Loc.GetString(ev.CloningFailMessage),
InGameICChatType.Speak, false);
return false;
}

Expand Down

0 comments on commit 364b237

Please sign in to comment.