mirror of
https://github.com/Melledy/Grasscutter.git
synced 2025-02-03 07:05:38 +00:00
Forgot config check
This commit is contained in:
parent
d59799ce55
commit
28a070f19a
@ -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 {
|
|||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user