mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix prototype flag add not actually working (#5376)
tryindex was inverted and causing issues with tools.
This commit is contained in:
@@ -45,7 +45,7 @@ namespace Robust.Shared.Utility
|
||||
/// <returns>Whether the flag was added or not.</returns>
|
||||
public bool Add(string flag, IPrototypeManager prototypeManager)
|
||||
{
|
||||
return !prototypeManager.TryIndex<T>(flag, out _) && _flags.Add(flag);
|
||||
return prototypeManager.HasIndex<T>(flag) && _flags.Add(flag);
|
||||
}
|
||||
|
||||
internal void UnionWith(PrototypeFlags<T> flags)
|
||||
|
||||
Reference in New Issue
Block a user