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
28a070f1
Commit
28a070f1
authored
Apr 20, 2022
by
Benjamin Elsdon
Browse files
Forgot config check
parent
d59799ce
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/gacha/GachaManager.java
View file @
28a070f1
...
@@ -296,6 +296,7 @@ public class GachaManager {
...
@@ -296,6 +296,7 @@ public class GachaManager {
@Subscribe
@Subscribe
public
synchronized
void
watchBannerJson
(
GameServerTickEvent
tickEvent
)
{
public
synchronized
void
watchBannerJson
(
GameServerTickEvent
tickEvent
)
{
if
(
Grasscutter
.
getConfig
().
getServerOptions
().
WatchGacha
)
{
try
{
try
{
for
(
WatchEvent
<?>
event
:
watchKey
.
pollEvents
())
{
for
(
WatchEvent
<?>
event
:
watchKey
.
pollEvents
())
{
final
Path
changed
=
(
Path
)
event
.
context
();
final
Path
changed
=
(
Path
)
event
.
context
();
...
@@ -308,6 +309,7 @@ public class GachaManager {
...
@@ -308,6 +309,7 @@ public class GachaManager {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
}
}
private
synchronized
GetGachaInfoRsp
createProto
()
{
private
synchronized
GetGachaInfoRsp
createProto
()
{
GetGachaInfoRsp
.
Builder
proto
=
GetGachaInfoRsp
.
newBuilder
().
setGachaRandom
(
12345
);
GetGachaInfoRsp
.
Builder
proto
=
GetGachaInfoRsp
.
newBuilder
().
setGachaRandom
(
12345
);
...
...
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