Updated troubleshooting information to be slightly more helpful

This commit is contained in:
Dominika 2020-07-30 17:45:29 -04:00
parent 2d273eb74a
commit 70db20c212
No known key found for this signature in database
GPG Key ID: B4A5A6DCA70F861F
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import net.minecraft.client.ClientBrandRetriever;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.common.ForgeVersion;
import org.apache.commons.lang3.StringUtils;
import org.lwjgl.opengl.GL11;
@ -52,7 +53,8 @@ public class TroubleshootCommand extends Command {
enabled.set(StringUtils.chop(StringUtils.chop(String.valueOf(enabled)))); // this looks horrible but I don't know how else to do it sorry
sendChatMessage("Enabled modules: " + f + "\n" + TextFormatting.GRAY + enabled);
if (args.length >= 2) return;
sendChatMessage(ClientBrandRetriever.getClientModName() + " " + KamiMod.VER_FULL_BETA);
sendChatMessage(ForgeVersion.getMajorVersion() + "." + ForgeVersion.getMinorVersion() + "." + ForgeVersion.getRevisionVersion() + "." + ForgeVersion.getBuildVersion());
sendChatMessage(KamiMod.MODNAME + " " + KamiMod.KAMI_KANJI + " " + KamiMod.VER_FULL_BETA);
sendChatMessage("CPU: " + OpenGlHelper.getCpu() + " GPU: " + GlStateManager.glGetString(GL11.GL_VENDOR));
sendChatMessage("Please send a screenshot of the full output to the developer or moderator who's helping you!");
}