Add messages on cloner eject fail (#5846)
This commit is contained in:
@@ -160,6 +160,16 @@ namespace Content.Server.Cloning.Components
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case UiButton.Eject:
|
case UiButton.Eject:
|
||||||
|
if (BodyContainer.ContainedEntity == null)
|
||||||
|
{
|
||||||
|
obj.Session.AttachedEntity.Value.PopupMessageCursor(Loc.GetString("cloning-pod-component-msg-empty"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (CloningProgress < CloningTime)
|
||||||
|
{
|
||||||
|
obj.Session.AttachedEntity.Value.PopupMessageCursor(Loc.GetString("cloning-pod-component-msg-incomplete"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
Eject();
|
Eject();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -15,4 +15,6 @@ cloning-pod-component-msg-bad-selection = ERROR: Entry Removed During Selection
|
|||||||
cloning-pod-component-msg-already-cloning = ERROR: Pod Network Conflict
|
cloning-pod-component-msg-already-cloning = ERROR: Pod Network Conflict
|
||||||
cloning-pod-component-msg-already-alive = ERROR: Metaphysical Conflict
|
cloning-pod-component-msg-already-alive = ERROR: Metaphysical Conflict
|
||||||
cloning-pod-component-msg-user-offline = ERROR: Metaphysical Disturbance
|
cloning-pod-component-msg-user-offline = ERROR: Metaphysical Disturbance
|
||||||
|
cloning-pod-component-msg-incomplete = ERROR: Cloning in progress
|
||||||
|
cloning-pod-component-msg-empty = ERROR: The pod is empty
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user