Fix server side loading, tweak mods command.

Signed-off-by: cpw <[email protected]>
This commit is contained in:
cpw committed 2019-06-22 12:31:27 -04:00
1 parent 83a0dc2ef9
commit 256bd01e0c
6 files changed
+17 -5

No files matched your search

@@ -35,7 +35,9 @@ public class CommandModList {
.requires(cs->cs.hasPermissionLevel(0)) //permission
.executes(ctx -> {
ctx.getSource().sendFeedback(new TranslationTextComponent("commands.forge.mods.list",
ModList.get().getMods().stream().map(ModInfo::getModId).collect(Collectors.joining(","))),
ModList.get().applyForEachModContainer(
mc->String.format("%s:%s(%s)", mc.getModId(), mc.getModInfo().getVersion().toString(), mc.getCurrentState())).
collect(Collectors.joining(","))),
true);
return 0;
}