mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Make ToPrettyString() take in nullable EntityUids (#4396)
This commit is contained in:
@@ -218,7 +218,8 @@ namespace Robust.Shared.Scripting
|
||||
public EntityPrototype? Prototype(EntityUid uid)
|
||||
=> ent.GetComponent<MetaDataComponent>(uid).EntityPrototype;
|
||||
|
||||
public EntityStringRepresentation ToPrettyString(EntityUid uid)
|
||||
[return: NotNullIfNotNull("uid")]
|
||||
public EntityStringRepresentation? ToPrettyString(EntityUid? uid)
|
||||
=> ent.ToPrettyString(uid);
|
||||
|
||||
public IEnumerable<IComponent> AllComps(EntityUid uid)
|
||||
|
||||
Reference in New Issue
Block a user