Skip to content

Commit

Permalink
fix return
Browse files Browse the repository at this point in the history
  • Loading branch information
Treetrain1 committed Nov 24, 2023
1 parent 5217dc3 commit bdc0df7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import java.util.Collection;

public final class ConfigCommand {
private ConfigCommand() {}

public static void register(CommandDispatcher<CommandSourceStack> dispatcher) {
dispatcher.register(Commands.literal("frozenlib_config")
Expand All @@ -55,6 +56,6 @@ private static int reloadConfigs(CommandSourceStack source, String modId) {
source.sendSuccess(() -> Component.translatable("commands.frozenlib_config.reload.single", modId), true);
else
source.sendSuccess(() -> Component.translatable("commands.frozenlib_config.reload.multiple", configs.size(), modId), true);
return 1;
return configs.size();
}
}

0 comments on commit bdc0df7

Please sign in to comment.