diff --git a/src/main/java/vazkii/psi/api/spell/wrapper/EntityListWrapper.java b/src/main/java/vazkii/psi/api/spell/wrapper/EntityListWrapper.java index 66da59b7..134e93b0 100644 --- a/src/main/java/vazkii/psi/api/spell/wrapper/EntityListWrapper.java +++ b/src/main/java/vazkii/psi/api/spell/wrapper/EntityListWrapper.java @@ -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()); } /**