From 9c0874162bad080ebb5adc44a74d332508a86731 Mon Sep 17 00:00:00 2001 From: Luck Date: Sat, 4 Dec 2021 10:41:12 +0000 Subject: [PATCH] Fix cast to long in MongoStorage --- .../common/storage/implementation/mongodb/MongoStorage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/implementation/mongodb/MongoStorage.java b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/mongodb/MongoStorage.java index bf595a97a..574df62f2 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/implementation/mongodb/MongoStorage.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/mongodb/MongoStorage.java @@ -667,7 +667,7 @@ public class MongoStorage implements StorageImplementation { } if (document.containsKey("expiry")) { - builder.expiry(document.getLong("expiry")); + builder.expiry((long) document.get("expiry")); } if (document.containsKey("context") && document.get("context") instanceof List) {