Commits

md_5 authored b24bb75af90
SPIGOT-7161: SnakeYaml 1.32 changed the default file size limit
No tags

src/main/java/org/bukkit/configuration/file/YamlConfiguration.java

Modified
57 57
58 58 public YamlConfiguration() {
59 59 constructor = new YamlConstructor();
60 60 representer = new YamlRepresenter();
61 61 representer.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
62 62
63 63 yamlDumperOptions = new DumperOptions();
64 64 yamlDumperOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
65 65 yamlLoaderOptions = new LoaderOptions();
66 66 yamlLoaderOptions.setMaxAliasesForCollections(Integer.MAX_VALUE); // SPIGOT-5881: Not ideal, but was default pre SnakeYAML 1.26
67 + yamlLoaderOptions.setCodePointLimit(Integer.MAX_VALUE); // SPIGOT-7161: Not ideal, but was default pre SnakeYAML 1.32
67 68
68 69 yaml = new BukkitYaml(constructor, representer, yamlDumperOptions, yamlLoaderOptions);
69 70 }
70 71
71 72 @NotNull
72 73 @Override
73 74 public String saveToString() {
74 75 yamlDumperOptions.setIndent(options().indent());
75 76 yamlDumperOptions.setWidth(options().width());
76 77 yamlDumperOptions.setProcessComments(options().parseComments());

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut