Skip to content

Commit

Permalink
Another cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDorob committed Dec 2, 2024
1 parent 6d99b3d commit 945b9f1
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,12 @@ private Thing TryDropThing(Thing thingToDrop, Map map, IntVec3 position)
{
dropedThing = GenSpawn.Spawn(thingToDrop, position, map, contents.spawnWipeMode.Value);
}
if (dropedThing is Pawn pawn)
if (dropedThing is Pawn pawn && pawn.RaceProps.Humanlike)
{
if (pawn.RaceProps.Humanlike)
TaleRecorder.RecordTale(TaleDefOf.LandedInPod, new object[]
{
TaleRecorder.RecordTale(TaleDefOf.LandedInPod, new object[]
{
pawn
});
}
pawn
});
}
return dropedThing;
}
Expand Down

0 comments on commit 945b9f1

Please sign in to comment.