Skip to content

Commit

Permalink
fix: put description in the correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHillcox committed Jul 14, 2024
1 parent 79a79d9 commit 99e9535
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ loader_version_range=[4,)
mod_id=modlistexporter
mod_name=Mod List Exporter
mod_license=MIT
mod_version=1.1.0
mod_version=1.1.1
# Change from com.amadornes to net.forgecraft.mods as the maven server is bound to net.forgecraft
mod_group_id=net.forgecraft.mods
mod_authors=amadornes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import net.neoforged.fml.i18n.MavenVersionTranslator;
import net.neoforged.fml.loading.FMLPaths;
import net.neoforged.neoforgespi.language.IModInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.nio.file.CopyOption;
Expand All @@ -26,6 +28,8 @@
@Mod(ModListExporter.MODID)
public class ModListExporter {

private static final Logger LOGGER = LoggerFactory.getLogger(ModListExporter.class);

public static final String MODID = "modlistexporter";

private static final Gson GSON = new GsonBuilder()
Expand All @@ -48,6 +52,7 @@ private void offThread() {
var modList = gatherModList();
writeModList(modList);
} catch (IOException e) {
LOGGER.error("Failed to write mod list", e);
throw new RuntimeException(e);
}
}
Expand Down Expand Up @@ -80,8 +85,8 @@ public ModInfo(IModInfo mod) {
this(
mod.getModId(),
mod.getDisplayName(),
mod.getDescription(),
MavenVersionTranslator.artifactVersionToString(mod.getVersion())
MavenVersionTranslator.artifactVersionToString(mod.getVersion()),
mod.getDescription().trim()
);
}

Expand Down

0 comments on commit 99e9535

Please sign in to comment.