aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/DankersSkyblockMod.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/Danker/DankersSkyblockMod.java')
-rw-r--r--src/main/java/me/Danker/DankersSkyblockMod.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/DankersSkyblockMod.java b/src/main/java/me/Danker/DankersSkyblockMod.java
index 37dd773..40db55a 100644
--- a/src/main/java/me/Danker/DankersSkyblockMod.java
+++ b/src/main/java/me/Danker/DankersSkyblockMod.java
@@ -615,8 +615,12 @@ public class DankersSkyblockMod {
if (ToggleCommand.oruoToggled && Utils.inDungeons) {
if (message.contains("What SkyBlock year is it?")) {
- int year = (int) (Math.floor((System.currentTimeMillis() - 1560276000000L)/446400) + 1);
+ double currentTime = System.currentTimeMillis() /1000L;
+ double diff = Math.floor(currentTime - 1560276000);
+
+ int year = (int) (diff / 446400 + 1);
+ Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("It is Skyblock Year " + year));
triviaAnswers = new String[]{"Year " + year};
} else {
for (String question : triviaSolutions.keySet()) {