Skip to content

Commit

Permalink
fix: player's move bug: if the preview path's last coordinate is deli…
Browse files Browse the repository at this point in the history
…very. it will go home
  • Loading branch information
Vivomo committed Dec 10, 2023
1 parent 4ee0273 commit 7bb33e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/components/PIXIAPP/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const PIXIAPP = () => {
}
return [];
})
if (isDelivery(coordinate)) {
if (isDelivery(paths[paths.length - 1])) {
onMoveToDelivery();
} else {
tryHunt();
Expand Down

0 comments on commit 7bb33e8

Please sign in to comment.