Commits
md_5 authored b24bb75af90
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 | |
72 73 | |
73 74 | public String saveToString() { |
74 75 | yamlDumperOptions.setIndent(options().indent()); |
75 76 | yamlDumperOptions.setWidth(options().width()); |
76 77 | yamlDumperOptions.setProcessComments(options().parseComments()); |