Skip to content

Commit 9a47442

Browse files
authored
Correctly calculate IRL time based on game ticks (#24)
2 parents eb0f7ac + 497b0a5 commit 9a47442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/pro/cloudnode/smp/smpcore/SMPCore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,6 @@ public static boolean ifDisallowedCharacters(final @NotNull String source, final
202202
}
203203

204204
public static @NotNull Date gameTime() {
205-
return new Date(overworld().getGameTime() * 72);
205+
return new Date(overworld().getFullTime() * 3600 + 21600000);
206206
}
207207
}

0 commit comments

Comments
 (0)