Skip to content

Commit

Permalink
fix?: Change Entity List Wrapper's comparison to be based on entity id.
Browse files Browse the repository at this point in the history
Addresses #789
Might be reverted if causes issues.
  • Loading branch information
Kamefrede committed Nov 7, 2023
1 parent 4018425 commit 10dc013
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public static EntityListWrapper withRemoved(@Nonnull EntityListWrapper base, @No
* A Comparator for Entities that's deterministic, to keep order with the Entity Lists.
*/
public static int compareEntities(Entity l, Entity r) {
return l.getUUID().compareTo(r.getUUID());
return Integer.compare(l.getId(), r.getId());
}

/**
Expand Down

0 comments on commit 10dc013

Please sign in to comment.