diff --git a/Assemblies/Mending.dll b/Assemblies/Mending.dll index e3f815a..e2a9cac 100755 Binary files a/Assemblies/Mending.dll and b/Assemblies/Mending.dll differ diff --git a/Source/JobDriver_Recycle.cs b/Source/JobDriver_Recycle.cs index 6482883..583605a 100644 --- a/Source/JobDriver_Recycle.cs +++ b/Source/JobDriver_Recycle.cs @@ -100,14 +100,16 @@ protected override Toil DoBill() Log.Error("Mending :: " + actor + " could not drop recipe product " + list [j] + " near " + actor.Position); } } - } - - list[0].SetPositionDirect (actor.Position); + } else if (list.Count == 1) { + list [0].SetPositionDirect (actor.Position); - curJob.bill.Notify_IterationCompleted (actor, list); - curJob.targetB = list[0]; + curJob.bill.Notify_IterationCompleted (actor, list); + curJob.targetB = list [0]; - pawn.Map.reservationManager.Reserve(pawn, curJob.targetB, 1); + pawn.Map.reservationManager.Reserve (pawn, curJob.targetB, 1); + } else { + Log.Message ("Mending :: " + actor + " could not reclaim anything from " + objectThing); + } ReadyForNextToil(); }