mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-28 12:55:34 +01:00
Fixed rare instances of lookups displaying negative time values
This commit is contained in:
parent
5530a89189
commit
1c476408e9
@ -231,6 +231,9 @@ public class Util extends Queue {
|
|||||||
public static String getTimeSince(long resultTime, long currentTime, boolean component) {
|
public static String getTimeSince(long resultTime, long currentTime, boolean component) {
|
||||||
StringBuilder message = new StringBuilder();
|
StringBuilder message = new StringBuilder();
|
||||||
double timeSince = currentTime - (resultTime + 0.00);
|
double timeSince = currentTime - (resultTime + 0.00);
|
||||||
|
if (timeSince < 0.00) {
|
||||||
|
timeSince = 0.00;
|
||||||
|
}
|
||||||
|
|
||||||
// minutes
|
// minutes
|
||||||
timeSince = timeSince / 60;
|
timeSince = timeSince / 60;
|
||||||
|
Loading…
Reference in New Issue
Block a user