diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e751c79f..5e748c5ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -69,6 +69,7 @@ * Fixed #2447 * Fixed #2558 * Fixed a duplication bug with the Block Placer +* Fixed Slimefun Guide Settings showing "last activity" as a negative number ## Release Candidate 17 (17 Oct 2020) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/utils/NumberUtils.java b/src/main/java/io/github/thebusybiscuit/slimefun4/utils/NumberUtils.java index d752b5ec8..3162ec345 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/utils/NumberUtils.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/utils/NumberUtils.java @@ -130,7 +130,8 @@ public final class NumberUtils { public static String getElapsedTime(@Nonnull LocalDateTime start, @Nonnull LocalDateTime end) { Validate.notNull(start, "Provided start was null"); Validate.notNull(end, "Provided end was null"); - long hours = Duration.between(start, end).toHours(); + + long hours = Duration.between(end, start).toHours(); if (hours == 0) { return "< 1h";