mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
[DataConverter] Fix generator options parsing
This commit is contained in:
parent
943212b776
commit
382529a546
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
+ }
|
||||
|
|
Loading…
Reference in a new issue