Skip to content

Commit ec1d8e9

Browse files
authored
[InfoHud] Add current input size to the playback index (#241)
2 parents 39f58a4 + bb12857 commit ec1d8e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/minecrafttas/tasmod/gui/InfoHud.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,8 @@ public boolean checkInit() {
454454
+ "_visible")), Boolean.parseBoolean(configuration.getProperty(title + "_rect")), () -> {
455455
if (Minecraft.getMinecraft().currentScreen == this)
456456
return "PlaybackIndex";
457-
return Long.toString(TASmodClient.controller.index());
457+
458+
return String.format("%s/%s", TASmodClient.controller.index(), Math.max(TASmodClient.controller.size() - 1, 0L));
458459
}));
459460

460461
y = height - 14;

0 commit comments

Comments
 (0)