Fixed return of GetTag to return value of searched Tag.

This commit is contained in:
glax 2023-04-01 14:21:39 +02:00
parent 312536f0c0
commit b3da6936da

View File

@ -14,7 +14,7 @@ public class TagManager
public object? GetTag(ulong wayId, Tag.TagType key)
{
return ContainsKey(wayId, key) ? wayTagSets[wayId].First(tag => tag.key == key) : null;
return ContainsKey(wayId, key) ? wayTagSets[wayId].First(tag => tag.key == key).value : null;
}
public void AddTag(ulong wayId, string key, string value)