mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
SPIGOT-7161: SnakeYaml 1.32 changed the default file size limit
By: md_5 <git@md-5.net>
This commit is contained in:
parent
f7fac3540b
commit
cc4b84e4fb
@ -64,6 +64,7 @@ public class YamlConfiguration extends FileConfiguration {
|
|||||||
yamlDumperOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
yamlDumperOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
|
||||||
yamlLoaderOptions = new LoaderOptions();
|
yamlLoaderOptions = new LoaderOptions();
|
||||||
yamlLoaderOptions.setMaxAliasesForCollections(Integer.MAX_VALUE); // SPIGOT-5881: Not ideal, but was default pre SnakeYAML 1.26
|
yamlLoaderOptions.setMaxAliasesForCollections(Integer.MAX_VALUE); // SPIGOT-5881: Not ideal, but was default pre SnakeYAML 1.26
|
||||||
|
yamlLoaderOptions.setCodePointLimit(Integer.MAX_VALUE); // SPIGOT-7161: Not ideal, but was default pre SnakeYAML 1.32
|
||||||
|
|
||||||
yaml = new BukkitYaml(constructor, representer, yamlDumperOptions, yamlLoaderOptions);
|
yaml = new BukkitYaml(constructor, representer, yamlDumperOptions, yamlLoaderOptions);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user