Prevent verbs from same component appearing multiple times.

This commit is contained in:
Pieter-Jan Briers
2019-03-26 13:45:16 +01:00
parent adf1c4d79e
commit 38d11d0684

View File

@@ -113,7 +113,7 @@ namespace Content.Shared.GameObjects
// This works for now though.
public static IEnumerable<(IComponent, Verb)> GetVerbs(IEntity entity)
{
foreach (var component in entity.GetAllComponents())
foreach (var component in entity.GetComponentInstances())
{
var type = component.GetType();
foreach (var nestedType in type.GetNestedTypes())