Essential Commands

Essential Commands

108k Downloads

ExcludedTopLevelCommands impl makes my eyes go cross

John-Paul-R opened this issue ยท 1 comments

commented

there is 0 chance this is what I intended:

var excludedTopLevelCommands = new HashSet<>(CONFIG.EXCLUDED_TOP_LEVEL_COMMANDS);
IConsumer<LiteralCommandNode<ServerCommandSource>> registerNode = CONFIG.REGISTER_TOP_LEVEL_COMMANDS
? (node) -> {
if (!excludedTopLevelCommands.toString().contains(node.getLiteral())) {
rootNode.addChild(node);
}
essentialCommandsRootNode.addChild(node);
}
: essentialCommandsRootNode::addChild;

commented

remove the toString()