geforkt von Mirrors/Paper
catch IAE from empty transformation builder
Dieser Commit ist enthalten in:
Ursprung
6eaa203f77
Commit
82fbae146b
@ -1056,7 +1056,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ // ADD FUTURE TRANSFORMS HERE (these transforms run after the defaults have been merged into the node)
|
+ // ADD FUTURE TRANSFORMS HERE (these transforms run after the defaults have been merged into the node)
|
||||||
+ DEFAULT_AWARE_TRANSFORMATIONS.forEach(transform -> transform.apply(builder, contextMap, defaultsNode));
|
+ DEFAULT_AWARE_TRANSFORMATIONS.forEach(transform -> transform.apply(builder, contextMap, defaultsNode));
|
||||||
+
|
+
|
||||||
+ builder.build().apply(worldNode);
|
+ ConfigurationTransformation transformation;
|
||||||
|
+ try {
|
||||||
|
+ transformation = builder.build(); // build throws IAE if no actions were provided (bad zml)
|
||||||
|
+ } catch (IllegalArgumentException ignored) {
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
+ transformation.apply(worldNode);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ @Override
|
+ @Override
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren