Update some GetComponentName usages (#5942)

Rider tells me to use generic and generic one seems better.
This commit is contained in:
metalgearsloth
2025-06-01 17:54:43 +10:00
committed by GitHub
parent c696466522
commit 2c5604432b
3 changed files with 7 additions and 7 deletions

View File

@@ -140,7 +140,7 @@ namespace Robust.Server.Placement
{
// Replace existing entities if relevant.
if (msg.Replacement && _prototype.Index<EntityPrototype>(entityTemplateName).Components.TryGetValue(
_factory.GetComponentName(typeof(PlacementReplacementComponent)), out var compRegistry))
_factory.GetComponentName<PlacementReplacementComponent>(), out var compRegistry))
{
var key = ((PlacementReplacementComponent)compRegistry.Component).Key;
var gridUid = _xformSystem.GetGrid(coordinates);