From 0399041b76025c7904b25342ca241d967dbcd2ff Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Wed, 9 Mar 2016 13:05:04 +0100 Subject: [PATCH] Use Identified for id in comparator --- .../massivecore/comparator/ComparatorAbstract.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/com/massivecraft/massivecore/comparator/ComparatorAbstract.java b/src/com/massivecraft/massivecore/comparator/ComparatorAbstract.java index 1fb6712a..248cb071 100644 --- a/src/com/massivecraft/massivecore/comparator/ComparatorAbstract.java +++ b/src/com/massivecraft/massivecore/comparator/ComparatorAbstract.java @@ -2,9 +2,9 @@ package com.massivecraft.massivecore.comparator; import java.util.Comparator; +import com.massivecraft.massivecore.Identified; import com.massivecraft.massivecore.Named; import com.massivecraft.massivecore.Prioritized; -import com.massivecraft.massivecore.store.Entity; import com.massivecraft.massivecore.util.MUtil; public class ComparatorAbstract implements Comparator @@ -68,12 +68,12 @@ public class ComparatorAbstract implements Comparator if (ret != null) return ret; } - // EntityId - if (type1 instanceof Entity) + // Identified + if (type1 instanceof Identified) { - Entity entity1 = (Entity)type1; - Entity entity2 = (Entity)type2; - ret = MUtil.compare(entity1.getId(), entity2.getId()); + Identified identified1 = (Identified)type1; + Identified identified2 = (Identified)type2; + ret = MUtil.compare(identified1.getId(), identified2.getId()); if (ret != null) return ret; }