From ae22c7c3d085d1c7359cbcd07d18755d1b38e733 Mon Sep 17 00:00:00 2001 From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Sat, 20 Sep 2025 21:05:57 +0200 Subject: [PATCH] Fix RCD errors (#40278) --- Content.Client/RCD/RCDMenuBoundUserInterface.cs | 4 ++-- Content.Shared/RCD/Systems/RCDSystem.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Client/RCD/RCDMenuBoundUserInterface.cs b/Content.Client/RCD/RCDMenuBoundUserInterface.cs index 6aa32892cf..3f847c8beb 100644 --- a/Content.Client/RCD/RCDMenuBoundUserInterface.cs +++ b/Content.Client/RCD/RCDMenuBoundUserInterface.cs @@ -125,7 +125,7 @@ public sealed class RCDMenuBoundUserInterface : BoundUserInterface var name = Loc.GetString(proto.SetName); if (proto.Prototype != null && - _prototypeManager.Resolve(proto.Prototype, out var entProto)) + _prototypeManager.TryIndex(proto.Prototype, out var entProto)) // don't use Resolve because this can be a tile { name = entProto.Name; } @@ -144,7 +144,7 @@ public sealed class RCDMenuBoundUserInterface : BoundUserInterface if (proto.Mode is RcdMode.ConstructTile or RcdMode.ConstructObject && proto.Prototype != null - && _prototypeManager.Resolve(proto.Prototype, out var entProto)) + && _prototypeManager.TryIndex(proto.Prototype, out var entProto)) // don't use Resolve because this can be a tile { tooltip = Loc.GetString(entProto.Name); } diff --git a/Content.Shared/RCD/Systems/RCDSystem.cs b/Content.Shared/RCD/Systems/RCDSystem.cs index 2e638d7c13..6cce0b6204 100644 --- a/Content.Shared/RCD/Systems/RCDSystem.cs +++ b/Content.Shared/RCD/Systems/RCDSystem.cs @@ -111,7 +111,7 @@ public sealed class RCDSystem : EntitySystem var name = Loc.GetString(prototype.SetName); if (prototype.Prototype != null && - _protoManager.Resolve(prototype.Prototype, out var proto)) + _protoManager.TryIndex(prototype.Prototype, out var proto)) // don't use Resolve because this can be a tile name = proto.Name; msg = Loc.GetString("rcd-component-examine-build-details", ("name", name));