mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Warn about content-type being null/not application/zip
This commit is contained in:
parent
e214fbe277
commit
1608746afd
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
// 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")) {
|
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");
|
Path packMetadata = REMOTE_PACK_CACHE.resolve(url.hashCode() + ".metadata");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue