mccreery / better-hud

All the information you'll ever need! A Minecraft mod written in Forge.
https://www.curseforge.com/minecraft/mc-mods/better-hud
MIT License
32 stars 11 forks source link

Gameclock nonsensical option #99

Open ScottKillen opened 4 years ago

ScottKillen commented 4 years ago

I am using version 1.4.2.

In the "Game Clock" module, if I hide the "Days" indicator, it is replaced by a date that begins in 1970 and, to me, seems nonsensical. There is even a formating option to use a two-digit year, rather than a four digits year. I want to hide the days--but I don't want a date that I don't understand to display.

It looks like maybe this is somehow copied from the "System Time" module.

This issue is perhaps related to work you will do on #84.

mccreery commented 4 years ago

Heh, you're probably right. The two clocks have a common base which probably includes the options (I haven't checked in a while). It should definitely be possible to hide the date, even for system time.

ScottKillen commented 4 years ago

I can confirm that there is no way to hide the system date in the system clock module

In the game clock module, when I hide the "Days" in the game clock, it replaces it with a date that is the number of days added to 12/31/1969. So for instance "Day 28" is replaced with "01/28/1970"

ScottKillen commented 4 years ago

I am not set up to contribute, but the date format here just needs to be set to a format that excludes the date info.

https://github.com/mccreery/better-hud/blob/82e49e9c0665e812aa1d89eacb7e5536d9d2c884/src/main/java/jobicade/betterhud/element/text/GameClock.java#L141