Fix Misery orange critters (NPC 289) jumping in the wrong direction

This commit is contained in:
periwinkle
2026-04-19 07:20:35 +02:00
committed by alula
parent ab5ac2896a
commit 4a781ae07e
+2 -2
View File
@@ -1151,7 +1151,7 @@ impl BorrowedNPC<'_> {
self.anim_num = 2;
let player = self.get_closest_player_ref(&players);
self.direction = if player.x > self.x { Direction::Left } else { Direction::Right };
self.direction = if player.x < self.x { Direction::Left } else { Direction::Right };
}
self.action_counter += 1;
@@ -1171,7 +1171,7 @@ impl BorrowedNPC<'_> {
self.vel_x = 0;
let player = self.get_closest_player_ref(&players);
self.direction = if player.x > self.x { Direction::Left } else { Direction::Right };
self.direction = if player.x < self.x { Direction::Left } else { Direction::Right };
}
}
11 => {