Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Commit

Permalink
Fixed error message related to dropping raw food
Browse files Browse the repository at this point in the history
  • Loading branch information
NoImageAvailable committed Jul 6, 2017
1 parent 10b7fe1 commit 0c9983c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Binary file modified Assemblies/CombatExtended.dll
Binary file not shown.
Expand Up @@ -17,11 +17,14 @@ public static bool Prefix(JobGiver_DropUnusedInventory __instance, Pawn pawn, Th
// Remove forced hold from timed out tamer food
if (thing.def.IsIngestible && !thing.def.IsDrug && thing.def.ingestible.preferability <= FoodPreferability.RawTasty)
{
pawn.HoldTrackerForget(thing);
if (pawn.HoldTrackerIsHeld(thing))
{
pawn.HoldTrackerForget(thing);
}
return true;
}
var loadout = pawn.GetLoadout();
return loadout == null;
return !(loadout != null && loadout.SlotCount > 0);
}
}
}

0 comments on commit 0c9983c

Please sign in to comment.