Skip to content

Commit

Permalink
Correctly calculate IRL time based on game ticks (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
zefir-git authored May 26, 2024
2 parents eb0f7ac + 497b0a5 commit 9a47442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/pro/cloudnode/smp/smpcore/SMPCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,6 @@ public static boolean ifDisallowedCharacters(final @NotNull String source, final
}

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

0 comments on commit 9a47442

Please sign in to comment.