diff options
Diffstat (limited to 'spark-common')
-rw-r--r-- | spark-common/src/main/java/me/lucko/spark/common/activitylog/ActivityLog.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spark-common/src/main/java/me/lucko/spark/common/activitylog/ActivityLog.java b/spark-common/src/main/java/me/lucko/spark/common/activitylog/ActivityLog.java index 894593c..6962400 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/activitylog/ActivityLog.java +++ b/spark-common/src/main/java/me/lucko/spark/common/activitylog/ActivityLog.java @@ -114,8 +114,9 @@ public class ActivityLog { Activity activity = Activity.deserialize(element); if (activity.shouldExpire()) { save = true; + } else { + this.log.add(activity); } - this.log.add(activity); } catch (Exception e) { e.printStackTrace(); } |