diff --git a/gradle.properties b/gradle.properties index 201da3365..5beb9b213 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ org.gradle.jvmargs=-Xmx2G org.gradle.daemon=false -mod_version=2.0.2-7.1 +mod_version=2.0.3-7.1 mod_group=io.github.turniplabs mod_name=modmenu-bta diff --git a/src/main/java/io/github/prospector/modmenu/gui/ModListEntry.java b/src/main/java/io/github/prospector/modmenu/gui/ModListEntry.java index 7d4250162..898a2477b 100644 --- a/src/main/java/io/github/prospector/modmenu/gui/ModListEntry.java +++ b/src/main/java/io/github/prospector/modmenu/gui/ModListEntry.java @@ -46,7 +46,11 @@ public void render(int index, int y, int x, int rowWidth, int rowHeight, int mou GL11.glColor4f(1f, 1f, 1f, 1f); this.bindIconTexture(); internalRender(y, x); - String name = HardcodedUtil.formatFabricModuleName(metadata.getName()); + String name = metadata.getName(); + if (name.equals("Minecraft")){ // BAD CODE + name = "Better than Adventure"; + } + name = HardcodedUtil.formatFabricModuleName(name); String trimmedName = name; int maxNameWidth = rowWidth - 32 - 3; FontRenderer font = this.client.fontRenderer; diff --git a/src/main/java/io/github/prospector/modmenu/gui/ModListScreen.java b/src/main/java/io/github/prospector/modmenu/gui/ModListScreen.java index 061892a4b..4afbd403e 100644 --- a/src/main/java/io/github/prospector/modmenu/gui/ModListScreen.java +++ b/src/main/java/io/github/prospector/modmenu/gui/ModListScreen.java @@ -16,6 +16,7 @@ import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.render.FontRenderer; import net.minecraft.client.render.Tessellator; +import net.minecraft.core.Global; import net.minecraft.core.lang.I18n; import org.lwjgl.Sys; import org.lwjgl.input.Keyboard; @@ -313,6 +314,9 @@ public void drawScreen(int mouseX, int mouseY, float delta) { int lineSpacing = 9 + 1; int imageOffset = 36; String name = metadata.getName(); + if (name.equals("Minecraft")){ // BAD CODE + name = "Better than Adventure"; + } name = HardcodedUtil.formatFabricModuleName(name); String trimmedName = name; int maxNameWidth = this.width - (x + imageOffset); @@ -326,7 +330,13 @@ public void drawScreen(int mouseX, int mouseY, float delta) { init = false; } badgeRenderer.draw(mouseX, mouseY); - font.drawString("v" + metadata.getVersion().getFriendlyString(), x + imageOffset, paneY + 2 + lineSpacing, 0x808080); + String versionString; + if (metadata.getName().equals("Minecraft")){ // BAD CODE + versionString = Global.VERSION; + } else { + versionString = metadata.getVersion().getFriendlyString(); + } + font.drawString("v" + versionString, x + imageOffset, paneY + 2 + lineSpacing, 0x808080); String authors; List names = new ArrayList<>(); diff --git a/src/main/resources/assets/modmenu/mc_icon.png b/src/main/resources/assets/modmenu/mc_icon.png index 76e573b42..b12d05318 100644 Binary files a/src/main/resources/assets/modmenu/mc_icon.png and b/src/main/resources/assets/modmenu/mc_icon.png differ