From 9a96a10de435e0959f20f44d452e6bb89f664ced Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 26 Apr 2024 23:11:41 +0200 Subject: Add version id to /neustats (#1118) --- .../github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt | 1 - .../github/moulberry/notenoughupdates/commands/dev/NEUStatsCommand.kt | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt index b142ccc1..15c26daa 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/DevTestCommand.kt @@ -43,7 +43,6 @@ import net.minecraft.util.EnumParticleTypes import net.minecraftforge.common.MinecraftForge import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import java.util.function.Predicate -import kotlin.io.path.absolutePathString import kotlin.math.floor @NEUAutoSubscribe diff --git a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/NEUStatsCommand.kt b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/NEUStatsCommand.kt index 9e9cca14..85a14e15 100644 --- a/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/NEUStatsCommand.kt +++ b/src/main/kotlin/io/github/moulberry/notenoughupdates/commands/dev/NEUStatsCommand.kt @@ -176,6 +176,10 @@ class NEUStatsCommand { "Mod Version", Loader.instance().indexedModList[NotEnoughUpdates.MODID]!!.displayVersion ) + builder.append( + "Version Id", + NotEnoughUpdates.VERSION_ID + ) builder.append("SB Profile", SBInfo.getInstance().currentProfile) .also(::appendRepoStats) } -- cgit