Heat And Climate Lib

Heat And Climate Lib

533k Downloads

Year increases two days earlier

Iunius118 opened this issue · 1 comments

commented

気候HUDに表示されているYearの値が、年明けよりも2日早く増加しているようです。

Timeコマンドで確認した範囲ですが、以下にcore.cfgの一部とスクリーンショットを添付します。

I:"Start Date"=40
I:"Year Length"=240

2020-04-16_22 34 54

ソースコードの以下の箇所で、day - 1ではなくday + 1となっているのが原因かと思います。

int y = (day + 1) / CoreConfigDC.yearLength;

確認環境
forge-1.12.2-14.23.5.2847
HeatAndClimateLib_1.12.2-3.3.1
HeatAndClimateMod_1.12.2-3.3.3
jei_1.12.2-4.15.0.291
Hwyla-1.8.26-B41_1.12.2

commented

I have confirmed that this issue has been fixed in 8169484 and Lib 3.3.2.
Thanks a lot!