From 1608746afdcbabd920b196b881f6e52e589c0972 Mon Sep 17 00:00:00 2001 From: onebeastchris Date: Mon, 1 Jul 2024 14:19:21 +0200 Subject: [PATCH] Warn about content-type being null/not application/zip --- core/src/main/java/org/geysermc/geyser/util/WebUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/geysermc/geyser/util/WebUtils.java b/core/src/main/java/org/geysermc/geyser/util/WebUtils.java index 6449ae734..50ff0ede2 100644 --- a/core/src/main/java/org/geysermc/geyser/util/WebUtils.java +++ b/core/src/main/java/org/geysermc/geyser/util/WebUtils.java @@ -133,7 +133,8 @@ public class WebUtils { // This doesn't seem to be a requirement (anymore?). Logging to debug as it might be interesting though. if (type == null || !type.equals("application/zip")) { - logger.info(String.format("Application type from remote pack at URL: %s (type: %s)", url, type)); + logger.warning(String.format("Application type received from remote pack at URL %s uses the content type: %s! This may result in packs not loading " + + "for Bedrock players.", url, type)); } Path packMetadata = REMOTE_PACK_CACHE.resolve(url.hashCode() + ".metadata");