Commit 28a070f1 authored by Benjamin Elsdon's avatar Benjamin Elsdon
Browse files

Forgot config check

parent d59799ce
...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment