diff --git a/Engine/src/live/PlayerEntity.ts b/Engine/src/live/PlayerEntity.ts index 2ec82a8..0580438 100644 --- a/Engine/src/live/PlayerEntity.ts +++ b/Engine/src/live/PlayerEntity.ts @@ -10,10 +10,10 @@ export class PlayerEntity extends Entity { act(actions: Action[]) { this.action = actions.sort((a, b) => { if (a.priority < b.priority) { - return -1 + return 1 } if (a.priority > b.priority) { - return 1 + return -1 } return 0 })[0]