mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-02-13 19:11:37 +01:00
Fix webserver not serving any map-assets (Fixes #549)
This commit is contained in:
parent
8f88dd7fd9
commit
eeb01cba1a
@ -95,7 +95,7 @@ public HttpResponse handle(HttpRequest request) {
|
||||
case "textures.json" -> mapStorage.textures().read();
|
||||
case "live/markers.json" -> mapStorage.markers().read();
|
||||
case "live/players.json" -> mapStorage.players().read();
|
||||
default -> null;
|
||||
default -> path.startsWith("assets/") ? mapStorage.asset(path.substring(7)).read() : null;
|
||||
};
|
||||
if (in != null){
|
||||
HttpResponse response = new HttpResponse(HttpStatusCode.OK);
|
||||
|
Loading…
Reference in New Issue
Block a user