Skip to content

Commit 9f33d60

Browse files
authored
Cleanup and add more things to the troubleshoot command (#252)
* Add more information to the troubleshoot command * Add back the Forge version check * Fix
1 parent 1b83f23 commit 9f33d60

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/kotlin/com/lambda/client/command/commands/TroubleshootCommand.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import net.minecraft.client.renderer.GlStateManager
88
import net.minecraft.client.renderer.OpenGlHelper
99
import net.minecraftforge.common.ForgeVersion
1010
import org.lwjgl.opengl.GL11
11+
import java.util.*
1112

1213
object TroubleshootCommand : ClientCommand(
1314
name = "troubleshoot",
@@ -18,9 +19,12 @@ object TroubleshootCommand : ClientCommand(
1819
execute("Print troubleshooting information") {
1920
MessageSendHelper.sendErrorMessage("&l&cSend a screenshot of all information below this line!")
2021
MessageSendHelper.sendChatMessage("Enabled Modules:\n" + ModuleManager.modules.filter { it.isEnabled }.joinToString { it.name })
21-
MessageSendHelper.sendChatMessage("Forge ${ForgeVersion.getMajorVersion()}.${ForgeVersion.getMinorVersion()}.${ForgeVersion.getRevisionVersion()}.${ForgeVersion.getBuildVersion()}")
2222
MessageSendHelper.sendChatMessage("${LambdaMod.NAME} ${LambdaMod.LAMBDA} ${LambdaMod.VERSION}")
23-
MessageSendHelper.sendChatMessage("CPU: ${OpenGlHelper.getCpu()} GPU: ${GlStateManager.glGetString(GL11.GL_VENDOR)}")
23+
MessageSendHelper.sendChatMessage("Forge ${ForgeVersion.getMajorVersion()}.${ForgeVersion.getMinorVersion()}.${ForgeVersion.getRevisionVersion()}.${ForgeVersion.getBuildVersion()}")
24+
MessageSendHelper.sendChatMessage("Operating System: ${System.getProperty("os.name").lowercase(Locale.getDefault()).replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString() }} ${System.getProperty("os.version")} ")
25+
MessageSendHelper.sendChatMessage("JVM: ${System.getProperty("java.version")} ${System.getProperty("java.vendor")}")
26+
MessageSendHelper.sendChatMessage("GPU: ${GlStateManager.glGetString(GL11.GL_VENDOR)}")
27+
MessageSendHelper.sendChatMessage("CPU: ${System.getProperty("os.arch")} ${OpenGlHelper.getCpu()}")
2428
MessageSendHelper.sendErrorMessage("&l&cPlease send a screenshot of the full output to the developer or moderator who's helping you!")
2529
}
2630
}

0 commit comments

Comments
 (0)