From 38d11d06845f0e6bd32d26db3dbcfc0ad0859cb7 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Tue, 26 Mar 2019 13:45:16 +0100 Subject: [PATCH] Prevent verbs from same component appearing multiple times. --- Content.Shared/GameObjects/Verb.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/GameObjects/Verb.cs b/Content.Shared/GameObjects/Verb.cs index 38bb658e1d..ea2d423d19 100644 --- a/Content.Shared/GameObjects/Verb.cs +++ b/Content.Shared/GameObjects/Verb.cs @@ -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())