13
0
geforkt von Mirrors/Paper

[DataConverter] Fix generator options parsing

Dieser Commit ist enthalten in:
Joseph Burton 2022-06-05 22:49:42 +01:00
Ursprung 943212b776
Commit 382529a546

Datei anzeigen

@ -10652,7 +10652,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ if ("flat".equalsIgnoreCase(generatorName)) { + if ("flat".equalsIgnoreCase(generatorName)) {
+ data.setMap("generatorOptions", V1506.convert(generatorOptions == null ? "" : generatorOptions)); + data.setMap("generatorOptions", V1506.convert(generatorOptions == null ? "" : generatorOptions));
+ } else if ("buffet".equalsIgnoreCase(generatorName) && generatorOptions != null) { + } else if ("buffet".equalsIgnoreCase(generatorName) && generatorOptions != null) {
+ data.setMap("generatorOptions", JsonTypeUtil.convertJsonToNBT(new JsonMapType(GsonHelper.parse(generatorName, true), false))); + data.setMap("generatorOptions", JsonTypeUtil.convertJsonToNBT(new JsonMapType(GsonHelper.parse(generatorOptions, true), false)));
+ } + }
+ return null; + return null;
+ } + }