From 18f4dd3bf278671a317f9bc8a2f398731da50963 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Sun, 8 Nov 2015 17:26:36 +0100 Subject: [PATCH] MassiveCore change --- src/com/massivecraft/factions/update/UpdateUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/update/UpdateUtil.java b/src/com/massivecraft/factions/update/UpdateUtil.java index e2084a1b..68d50a60 100644 --- a/src/com/massivecraft/factions/update/UpdateUtil.java +++ b/src/com/massivecraft/factions/update/UpdateUtil.java @@ -17,6 +17,7 @@ import com.massivecraft.factions.entity.MConf; import com.massivecraft.massivecore.MassiveCore; import com.massivecraft.massivecore.store.Coll; import com.massivecraft.massivecore.store.Db; +import com.massivecraft.massivecore.store.Entity; import com.massivecraft.massivecore.store.MStore; import com.massivecraft.massivecore.util.MUtil; @@ -100,9 +101,10 @@ public class UpdateUtil return ret; } + @SuppressWarnings({ "unchecked", "rawtypes" }) public static int getUniverseFactionCount(String universe) { - Coll coll = new Coll("factions_faction@"+universe, Object.class, MStore.getDb(), Factions.get()); + Coll coll = new Coll("factions_faction@"+universe, Entity.class, MStore.getDb(), Factions.get()); Collection ids = MStore.getDb().getIds(coll);