mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-13 22:04:36 +01:00
Fix rogue schedule not using the correct zone offset
This commit is contained in:
@@ -45,7 +45,7 @@ public class GameDepot {
|
||||
|
||||
// TODO cache this so we dont have to run this function everytime we get the schedule
|
||||
public static RogueManagerExcel getCurrentRogueSchedule() {
|
||||
long time = System.currentTimeMillis();
|
||||
long time = System.currentTimeMillis() - (GameConstants.CURRENT_ZONEOFFSET.getTotalSeconds() * 1000);
|
||||
|
||||
for (var schedule : GameData.getRogueManagerExcelMap().values()) {
|
||||
if (time >= schedule.getBeginTime() && time < schedule.getEndTime()) {
|
||||
|
||||
Reference in New Issue
Block a user