Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
54c4f60a
Commit
54c4f60a
authored
Jun 26, 2022
by
GanyusLeftHorn
Committed by
Melledy
Jun 26, 2022
Browse files
Fix next sunday.
parent
7cb4c9fe
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/battlepass/BattlePassManager.java
View file @
54c4f60a
...
@@ -352,7 +352,10 @@ public class BattlePassManager {
...
@@ -352,7 +352,10 @@ public class BattlePassManager {
//
//
public
BattlePassSchedule
getScheduleProto
()
{
public
BattlePassSchedule
getScheduleProto
()
{
var
nextSundayDate
=
LocalDate
.
now
().
with
(
TemporalAdjusters
.
next
(
DayOfWeek
.
SUNDAY
));
var
currentDate
=
LocalDate
.
now
();
var
nextSundayDate
=
(
currentDate
.
getDayOfWeek
()
==
DayOfWeek
.
SUNDAY
)
?
currentDate
:
LocalDate
.
now
().
with
(
TemporalAdjusters
.
next
(
DayOfWeek
.
SUNDAY
));
var
nextSundayTime
=
LocalDateTime
.
of
(
nextSundayDate
.
getYear
(),
nextSundayDate
.
getMonthValue
(),
nextSundayDate
.
getDayOfMonth
(),
23
,
59
,
59
);
var
nextSundayTime
=
LocalDateTime
.
of
(
nextSundayDate
.
getYear
(),
nextSundayDate
.
getMonthValue
(),
nextSundayDate
.
getDayOfMonth
(),
23
,
59
,
59
);
BattlePassSchedule
.
Builder
schedule
=
BattlePassSchedule
.
newBuilder
()
BattlePassSchedule
.
Builder
schedule
=
BattlePassSchedule
.
newBuilder
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment