From 2c8c0b7c7d54534ce8cd6ccc5c03952d24285448 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Sun, 26 May 2013 17:45:23 +0200 Subject: [PATCH] This more flexible. --- src/com/massivecraft/mcore/store/DriverMongo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/mcore/store/DriverMongo.java b/src/com/massivecraft/mcore/store/DriverMongo.java index 8cfa3bec..b30f5860 100644 --- a/src/com/massivecraft/mcore/store/DriverMongo.java +++ b/src/com/massivecraft/mcore/store/DriverMongo.java @@ -136,8 +136,8 @@ public class DriverMongo extends DriverAbstract BasicDBObject raw = (BasicDBObject)dbcoll.findOne(new BasicDBObject(ID_FIELD, id)); if (raw == null) return null; + Long mtime = ((Number)raw.removeField(MTIME_FIELD)).longValue(); raw.removeField(ID_FIELD); - Long mtime = (Long) raw.removeField(MTIME_FIELD); JsonElement element = MongoGsonConverter.mongo2GsonObject(raw);