From c471bb9fa57aabf198878c742a63cdefcf08ab6a Mon Sep 17 00:00:00 2001 From: Ananke <261607709+anankex@users.noreply.github.com> Date: Fri, 6 Nov 2026 17:30:08 +0100 Subject: [PATCH] Do not abort when suspending a craft identical to a suspended one recipedata::id() is built from the recipe, tools, spawn settings and locations, so two crafts of the same recipe with the same tool at the same place share it. Suspending the second one hit the duplicate check in craftcore::AddSuspended() and aborted the game. Replace the stale entry with the new one instead. The newer recipedata matches the current state of the world. --- Main/Source/cmdcraft.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Main/Source/cmdcraft.cpp b/Main/Source/cmdcraft.cpp index 92128c8a0..1fca66a2a 100644 --- a/Main/Source/cmdcraft.cpp +++ b/Main/Source/cmdcraft.cpp @@ -31,9 +31,12 @@ void craftcore::AddSuspended(const recipedata& rpd) if(!rpd.rc.IsCanBeSuspended()) ABORT("action can't be suspended %s",rpd.dbgInfo().CStr()); + /* id() is not unique: identical crafts share it, so keep the newest. */ for(int i=0;i