Skip to content

Commit

Permalink
Fix npc floating above ground
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Sep 25, 2023
1 parent 4370c63 commit 4caa7c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public FieldGeneratorNPCUnit(IField field, IFieldTemplateLife life, INPCTemplate

NPC = new FieldNPC(
_template,
_life.Position,
_field.Template.Footholds.FindBelow(_life.Position).FirstOrDefault()?.Line.AtX(_life.Position.X) ?? _life.Position,
_field.Template.Footholds.FindByID(_life.FootholdID),
_life.Bounds,
_life.IsFacingLeft
Expand Down

0 comments on commit 4caa7c8

Please sign in to comment.