|
1 |
| -package journeymap.service.webmap |
| 1 | +package journeymap_webmap.service.webmap |
2 | 2 |
|
3 | 3 | import io.javalin.Javalin
|
4 | 4 | import io.javalin.http.staticfiles.Location
|
5 | 5 | import journeymap.client.Constants
|
6 | 6 | import journeymap.client.JourneymapClient
|
7 | 7 | import journeymap.client.io.FileHandler
|
8 | 8 | import journeymap.common.Journeymap
|
9 |
| -import journeymap.service.webmap.kotlin.routes.* |
| 9 | +import journeymap_webmap.Constants.MOD_ID |
| 10 | +import journeymap_webmap.service.webmap.kotlin.routes.* |
10 | 11 | import net.minecraft.resources.ResourceLocation
|
11 | 12 | import org.apache.logging.log4j.Logger
|
12 | 13 | import java.io.File
|
@@ -54,7 +55,7 @@ object Webmap {
|
54 | 55 | val created =
|
55 | 56 | FileHandler.copyResources(
|
56 | 57 | dir,
|
57 |
| - ResourceLocation.fromNamespaceAndPath(journeymap.Constants.MOD_ID, "web"), |
| 58 | + ResourceLocation.fromNamespaceAndPath(MOD_ID, "web"), |
58 | 59 | "",
|
59 | 60 | false
|
60 | 61 | )
|
@@ -82,7 +83,7 @@ object Webmap {
|
82 | 83 | .get("/skin/{uuid}", ::skinGet)
|
83 | 84 | .get("/status", ::statusGet)
|
84 | 85 | .get("/tiles/tile.png", ::tilesGet)
|
85 |
| - app?.start(port) |
| 86 | + app?.start(port) |
86 | 87 |
|
87 | 88 | } catch (e: Exception) {
|
88 | 89 | logger.error("Failed to start server: $e")
|
|
0 commit comments