fix day 0 being negative day

This commit is contained in:
Bixilon 2022-11-11 11:02:23 +01:00
parent 26d75b16b1
commit 07cb2625b5
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4

View File

@ -29,5 +29,5 @@ class WorldTime(
val phase = DayPhases.of(time)
val progress = phase.getProgress(time)
val day = (this.age + 6000) / ProtocolDefinition.TICKS_PER_DAY - 1 // day changes at midnight (18k)
val day = (this.age + 6000) / ProtocolDefinition.TICKS_PER_DAY // day changes at midnight (18k)
}