From 39bb967e08d355f43380def1f9755c0566e4886a Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Sat, 11 Mar 2017 10:05:50 +0200 Subject: [PATCH] [2.8.3] Fix #44 --- .../main/java/com/djrapitops/plan/utilities/AnalysisUtils.java | 3 ++- Plan/src/main/resources/plugin.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/AnalysisUtils.java b/Plan/src/main/java/com/djrapitops/plan/utilities/AnalysisUtils.java index 4e155e895..28d5cbd03 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/AnalysisUtils.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/AnalysisUtils.java @@ -85,8 +85,9 @@ public class AnalysisUtils { } public static List transformSessionDataToLengths(Collection data) { + List d = new ArrayList<>(data); List list = new ArrayList<>(); - data.stream().forEach((sData) -> { + d.stream().forEach((sData) -> { list.add(sData.getSessionEnd()-sData.getSessionStart()); }); return list; diff --git a/Plan/src/main/resources/plugin.yml b/Plan/src/main/resources/plugin.yml index d6428e550..4b80c82bd 100644 --- a/Plan/src/main/resources/plugin.yml +++ b/Plan/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ name: Plan author: Rsl1122 main: main.java.com.djrapitops.plan.Plan -version: 2.8.2 +version: 2.8.3 softdepend: - OnTime