mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-12-30 18:08:24 +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) {
|
||||
StringBuilder message = new StringBuilder();
|
||||
double timeSince = currentTime - (resultTime + 0.00);
|
||||
if (timeSince < 0.00) {
|
||||
timeSince = 0.00;
|
||||
}
|
||||
|
||||
// minutes
|
||||
timeSince = timeSince / 60;
|
||||
|
Loading…
Reference in New Issue
Block a user