From ccf777874b324a99a4e35f2acaa98be94c58e65d Mon Sep 17 00:00:00 2001 From: GinYuH <> Date: Fri, 19 May 2023 04:41:47 -0700 Subject: [PATCH] arsenal recipe function fix --- CustomRecipes/ArsenalTierGatedRecipe.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CustomRecipes/ArsenalTierGatedRecipe.cs b/CustomRecipes/ArsenalTierGatedRecipe.cs index ca6e2e9fc6..23382933a4 100644 --- a/CustomRecipes/ArsenalTierGatedRecipe.cs +++ b/CustomRecipes/ArsenalTierGatedRecipe.cs @@ -8,11 +8,11 @@ namespace CalamityMod.CustomRecipes { public static LocalizedText ConstructRecipeCondition(int tier, out Func condition) { - condition = r => HasTierBeenLearned(tier); + condition = new Func(()=>HasBeenLearned(tier)); return Language.GetOrRegister($"Mods.CalamityMod.Misc.Tier{tier}ArsenalRecipeCondition"); } - public static bool HasTierBeenLearned(int tier) + public static bool HasBeenLearned(int tier) { return tier switch {