From 5c097c83cba5a9154c62b92090380d69c6d26193 Mon Sep 17 00:00:00 2001 From: Paldiu Date: Sat, 6 Mar 2021 12:00:32 -0600 Subject: [PATCH] Here's to hoping this fixes that stupid ban crap. --- .../java/me/totalfreedom/totalfreedommod/util/FUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/totalfreedom/totalfreedommod/util/FUtil.java b/src/main/java/me/totalfreedom/totalfreedommod/util/FUtil.java index a6a62e2b..e32e4611 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/util/FUtil.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/util/FUtil.java @@ -605,12 +605,12 @@ public class FUtil public static Date getUnixDate(long unix) { - return new Date(unix * 1000); + return new Date(unix); } public static long getUnixTime() { - return System.currentTimeMillis() / 1000L; + return Instant.now().getEpochSecond(); } public static long getUnixTime(Date date) @@ -620,7 +620,7 @@ public class FUtil return 0; } - return date.getTime() / 1000L; + return date.getTime(); } public static String getNMSVersion()