mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-03-10 16:14:45 +00:00
.
This commit is contained in:
parent
c811f9efd1
commit
78364740b0
@ -7,9 +7,9 @@ namespace QSB.WorldSync
|
||||
{
|
||||
public static List<WorldObject> WorldObjects { get; } = new List<WorldObject>();
|
||||
|
||||
public static T GetObject<T>(string name) where T : WorldObject
|
||||
public static T GetObject<T>(string uniqueName) where T : WorldObject
|
||||
{
|
||||
return WorldObjects.OfType<T>().FirstOrDefault(x => x.UniqueName == name);
|
||||
return WorldObjects.OfType<T>().FirstOrDefault(x => x.UniqueName == uniqueName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user