Skip to content

Commit

Permalink
Adjust mod string position
Browse files Browse the repository at this point in the history
  • Loading branch information
Caroline Joy Bell committed Jun 29, 2022
1 parent 2be103c commit 16c80f5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ pluginManagement {
}
}
}

rootProject.name = "Apron"
4 changes: 2 additions & 2 deletions src/main/java/io/github/betterthanupdates/apron/Apron.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ public static String versionString(final String original) {
* @return a string telling how many mods are loaded from ModLoader
*/
public static String rmlModsLoaded() {
return rmlModCount + " RML mods";
return rmlModCount + " RML";
}

public static String fabricModsLoaded() {
return fabricModCount + " Fabric mods";
return fabricModCount + " Fabric";
}

public static String getRemappedFieldName(Class<?> type, String name) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public abstract class InGameHudMixin extends GuiElement {
target = "Lnet/minecraft/util/math/MathHelper;floor(D)I"))
private void apron$addDebugLine(float bl, boolean i, int j, int par4, CallbackInfo ci) {
this.drawTextWithShadow(this.client.textRenderer,
String.format("%s, %s", rmlModsLoaded(), fabricModsLoaded()), 2, 98, 0xE0_E0_E0);
String.format("M: %s, %s", rmlModsLoaded(), fabricModsLoaded()), 2, 96, 0xE0_E0_E0);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public abstract class TitleScreenMixin extends Screen {
int yOffset = FabricLoader.getInstance().isModLoaded("mojangfix") ? 22 : 12;

this.drawTextWithShadow(this.textRenderer,
String.format("(%s, %s)", rmlModsLoaded(), fabricModsLoaded()), 2, yOffset, 0x50_50_50);
String.format("Mods: %s, %s", rmlModsLoaded(), fabricModsLoaded()), 2, yOffset, 0x50_50_50);
}

@Inject(method = "init", at = @At("HEAD"))
Expand Down

0 comments on commit 16c80f5

Please sign in to comment.