[DataConverter] Fix generator options parsing

This commit is contained in:
Joseph Burton 2022-06-05 22:49:42 +01:00
parent 943212b776
commit 382529a546

View file

@ -10652,7 +10652,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ if ("flat".equalsIgnoreCase(generatorName)) {
+ data.setMap("generatorOptions", V1506.convert(generatorOptions == null ? "" : generatorOptions));
+ } 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;
+ }