From b4510d573760129c5045630b7a2f8436023db407 Mon Sep 17 00:00:00 2001 From: soul Date: Fri, 23 Oct 2026 05:27:50 +0200 Subject: [PATCH] EconomyChecks: the key check reads the record key, not the cache's reference to a sound copy Co-Authored-By: Claude Sonnet 5.5 --- Assets/Scripts/ServerShared/EconomyChecks.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/ServerShared/EconomyChecks.cs b/Assets/Scripts/ServerShared/EconomyChecks.cs index af2c1eb5c..eb9564845 100644 --- a/Assets/Scripts/ServerShared/EconomyChecks.cs +++ b/Assets/Scripts/ServerShared/EconomyChecks.cs @@ -109,7 +109,7 @@ public static class EconomyChecks if (stored.Fills == null) Add(key, "Fills is null; a recipe holds a list, empty when it fills no role."); var output = catalog.Get(recipe.Output); if (output == null) { Add(key, "Output names no item this catalog holds."); continue; } - if (!catalog.RefOf(recipe).Key.Equals(RecipeData.KeyOf(recipe.Output.Key))) + if (key != RecipeData.KeyOf(recipe.Output.Key).Value) Add(key, "The recipe's key is not recipe:; one recipe per output is its key."); if (recipe.OutputCount <= 0) Add(key, "OutputCount is not above zero."); if (!float.IsFinite(recipe.Cycle) || recipe.Cycle <= 0) Add(key, "Cycle is not a finite number above zero.");