From 6249a129c0855c738ee3dfb2336335526bf1c541 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Thu, 10 Oct 2019 12:17:17 +0200 Subject: [PATCH] Fix verbs for children of the component defining the verb. This fixes clothing not having a pick up verb, for example. --- Content.Shared/GameObjects/Verb.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Shared/GameObjects/Verb.cs b/Content.Shared/GameObjects/Verb.cs index 371ef2a87f..18c47e9c46 100644 --- a/Content.Shared/GameObjects/Verb.cs +++ b/Content.Shared/GameObjects/Verb.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using System.Reflection; using JetBrains.Annotations; using Robust.Shared.Interfaces.GameObjects; +using Robust.Shared.Utility; namespace Content.Shared.GameObjects { @@ -118,7 +118,7 @@ namespace Content.Shared.GameObjects foreach (var component in entity.GetAllComponents()) { var type = component.GetType(); - foreach (var nestedType in type.GetNestedTypes(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static)) + foreach (var nestedType in type.GetAllNestedTypes()) { if (!typeof(Verb).IsAssignableFrom(nestedType) || nestedType.IsAbstract) {