mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-14 14:24:37 +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
|
// TODO cache this so we dont have to run this function everytime we get the schedule
|
||||||
public static RogueManagerExcel getCurrentRogueSchedule() {
|
public static RogueManagerExcel getCurrentRogueSchedule() {
|
||||||
long time = System.currentTimeMillis();
|
long time = System.currentTimeMillis() - (GameConstants.CURRENT_ZONEOFFSET.getTotalSeconds() * 1000);
|
||||||
|
|
||||||
for (var schedule : GameData.getRogueManagerExcelMap().values()) {
|
for (var schedule : GameData.getRogueManagerExcelMap().values()) {
|
||||||
if (time >= schedule.getBeginTime() && time < schedule.getEndTime()) {
|
if (time >= schedule.getBeginTime() && time < schedule.getEndTime()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user