mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-31 21:48:08 +01:00
Remove unnecessary scopes
This commit is contained in:
parent
79a4bd135a
commit
4b6026f18d
@ -420,26 +420,19 @@ public class Command {
|
||||
jsonObject.add(s, array);
|
||||
}
|
||||
};
|
||||
|
||||
// Names
|
||||
{
|
||||
processor.accept("names", array -> node.names.forEach(array::add));
|
||||
}
|
||||
processor.accept("names", array -> node.names.forEach(array::add));
|
||||
// Nodes
|
||||
{
|
||||
processor.accept("nodes", array ->
|
||||
node.nodes.forEach(n -> {
|
||||
JsonObject nodeObject = new JsonObject();
|
||||
processNode(n, nodeObject);
|
||||
array.add(nodeObject);
|
||||
}));
|
||||
}
|
||||
processor.accept("nodes", array ->
|
||||
node.nodes.forEach(n -> {
|
||||
JsonObject nodeObject = new JsonObject();
|
||||
processNode(n, nodeObject);
|
||||
array.add(nodeObject);
|
||||
}));
|
||||
// Arguments
|
||||
{
|
||||
processor.accept("arguments", array ->
|
||||
node.arguments.forEach(arguments ->
|
||||
array.add(String.join(StringUtils.SPACE, arguments))));
|
||||
}
|
||||
processor.accept("arguments", array ->
|
||||
node.arguments.forEach(arguments ->
|
||||
array.add(String.join(StringUtils.SPACE, arguments))));
|
||||
}
|
||||
|
||||
private static final class Node {
|
||||
|
Loading…
Reference in New Issue
Block a user