From ef435fc511cd2f3b77caf9118d37a6fa259fb8ed Mon Sep 17 00:00:00 2001 From: psyGamer Date: Mon, 16 Dec 2024 19:40:59 +0100 Subject: [PATCH] tweak: Collect methods from other mods as well --- CelesteTAS-EverestInterop/Source/Utils/AttributeUtils.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CelesteTAS-EverestInterop/Source/Utils/AttributeUtils.cs b/CelesteTAS-EverestInterop/Source/Utils/AttributeUtils.cs index ff76d9ba8..6bf30cf9a 100644 --- a/CelesteTAS-EverestInterop/Source/Utils/AttributeUtils.cs +++ b/CelesteTAS-EverestInterop/Source/Utils/AttributeUtils.cs @@ -3,6 +3,7 @@ using System.Linq; using System.Reflection; using Celeste.Mod; +using Celeste.Mod.Helpers; using TAS.Module; namespace TAS.Utils; @@ -12,7 +13,7 @@ public static class AttributeUtils { /// Gathers all static, parameterless methods with attribute T public static void CollectMethods() where T : Attribute { - attributeMethods[typeof(T)] = typeof(CelesteTasModule).Assembly + attributeMethods[typeof(T)] = FakeAssembly.GetFakeEntryAssembly() .GetTypesSafe() .SelectMany(type => type .GetMethods(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic)