mirror of
https://github.com/modrinth/code.git
synced 2026-08-24 16:44:51 +00:00
fix(shared-instances): allow nbt configs (#6993)
fix: allow nbt configs
This commit is contained in:
@@ -31,7 +31,7 @@ pub(crate) const CONFIG_DIRECTORY: &str = "config";
|
|||||||
pub(crate) const MAX_CONFIG_BUNDLE_ENTRIES: usize = 4096;
|
pub(crate) const MAX_CONFIG_BUNDLE_ENTRIES: usize = 4096;
|
||||||
pub(crate) const MAX_CONFIG_BUNDLE_FILE_SIZE: u64 = 16 * 1024 * 1024;
|
pub(crate) const MAX_CONFIG_BUNDLE_FILE_SIZE: u64 = 16 * 1024 * 1024;
|
||||||
pub(crate) const MAX_CONFIG_BUNDLE_TOTAL_SIZE: u64 = 128 * 1024 * 1024;
|
pub(crate) const MAX_CONFIG_BUNDLE_TOTAL_SIZE: u64 = 128 * 1024 * 1024;
|
||||||
pub(crate) const CONFIG_FILE_EXTENSIONS: [&str; 13] = [
|
pub(crate) const CONFIG_FILE_EXTENSIONS: [&str; 14] = [
|
||||||
"json",
|
"json",
|
||||||
"json5",
|
"json5",
|
||||||
"jsonc",
|
"jsonc",
|
||||||
@@ -45,6 +45,7 @@ pub(crate) const CONFIG_FILE_EXTENSIONS: [&str; 13] = [
|
|||||||
"conf",
|
"conf",
|
||||||
"properties",
|
"properties",
|
||||||
"xml",
|
"xml",
|
||||||
|
"nbt",
|
||||||
];
|
];
|
||||||
|
|
||||||
pub(crate) fn read_bounded_config_bundle_entry(
|
pub(crate) fn read_bounded_config_bundle_entry(
|
||||||
|
|||||||
Reference in New Issue
Block a user