Forgot config check

This commit is contained in:
Benjamin Elsdon 2022-04-20 16:07:18 +08:00
parent d59799ce55
commit 28a070f19a

View File

@ -296,6 +296,7 @@ public class GachaManager {
@Subscribe
public synchronized void watchBannerJson(GameServerTickEvent tickEvent) {
if(Grasscutter.getConfig().getServerOptions().WatchGacha) {
try {
for (WatchEvent<?> event : watchKey.pollEvents()) {
final Path changed = (Path) event.context();
@ -308,6 +309,7 @@ public class GachaManager {
e.printStackTrace();
}
}
}
private synchronized GetGachaInfoRsp createProto() {
GetGachaInfoRsp.Builder proto = GetGachaInfoRsp.newBuilder().setGachaRandom(12345);