From 15a7ce55cee8477c0ba811184fef530a5bdb61a2 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Tue, 6 Oct 2026 21:42:23 -0700 Subject: [PATCH] fix: T2A tailoring make-last no longer reuses a stale cloth hue for leather (#2694) ## Summary T2A tailoring Make Last failed after crafting a cloth item and then a leather item. `CraftContext.LastHue` was set only on the hued (cloth) path, so the next Make Last of a leather item took the hue-aware path and failed with "You don't have the resources". The leather path now resets `LastHue` to -1. ## Testing - `dotnet build`: 0 warnings, 0 errors - No automated test: driving `TailoringMenu` needs a NetState plus tiledata-backed resources, and CI has no tiledata. Not yet exercised in game. --- Projects/UOContent/Engines/Craft/T2A/TailoringMenu.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Projects/UOContent/Engines/Craft/T2A/TailoringMenu.cs b/Projects/UOContent/Engines/Craft/T2A/TailoringMenu.cs index 80f950ab8..a7a5feccc 100644 --- a/Projects/UOContent/Engines/Craft/T2A/TailoringMenu.cs +++ b/Projects/UOContent/Engines/Craft/T2A/TailoringMenu.cs @@ -278,6 +278,8 @@ public class TailoringMenu : ItemListMenu } else { + // Make Last picks the hue-aware overload from LastHue, so a leather craft must clear the cloth hue + context.LastHue = -1; DefTailoring.CraftSystem.CreateItem(from, itemDef.ItemType, resourceType, _tool, itemDef); } }