mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Inline GetComponent
This commit is contained in:
@@ -53,7 +53,8 @@ namespace Robust.Shared.Scripting
|
||||
|
||||
public T gcm<T>(int i)
|
||||
{
|
||||
return getent(i).GetComponent<T>();
|
||||
IEntity tempQualifier = getent(i);
|
||||
return IoCManager.Resolve<IEntityManager>().GetComponent<T>(tempQualifier.Uid);
|
||||
}
|
||||
|
||||
public IEntity getent(EntityUid uid)
|
||||
|
||||
Reference in New Issue
Block a user