geforkt von Mirrors/Paper
[DataConverter] Fix generator options parsing
Dieser Commit ist enthalten in:
Ursprung
943212b776
Commit
382529a546
@ -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;
|
||||||
+ }
|
+ }
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren