mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-12-30 21:07:41 +01:00
Fix live-enable config option not working
This commit is contained in:
parent
1716098622
commit
724d553a64
@ -61,7 +61,7 @@ public LiveAPIRequestHandler(ServerInterface server, LiveAPISettings config, Htt
|
||||
|
||||
@Override
|
||||
public HttpResponse handle(HttpRequest request) {
|
||||
if (!config.isLiveUpdatesEnabled()) this.notFoundHandler.handle(request);
|
||||
if (!config.isLiveUpdatesEnabled()) return this.notFoundHandler.handle(request);
|
||||
|
||||
HttpRequestHandler handler = liveAPIRequests.get(request.getPath());
|
||||
if (handler != null) return handler.handle(request);
|
||||
|
Loading…
Reference in New Issue
Block a user