Skip to content

Commit

Permalink
Fix entity cramming
Browse files Browse the repository at this point in the history
We want to count non-passengers, not passengers
  • Loading branch information
jpenilla committed Sep 24, 2024
1 parent 8d45689 commit c5abf0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void pushEntities() {
int nonPassengers = 0;
for (int i = 0, len = nearby.size(); i < len; ++i) {
final Entity entity = nearby.get(i);
nonPassengers += (entity.isPassenger() ? 1 : 0);
nonPassengers += (entity.isPassenger() ? 0 : 1);
this.doPush(entity);
}

Expand Down

0 comments on commit c5abf0a

Please sign in to comment.