Skip to content

Commit

Permalink
calculation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CmdrJane committed Sep 8, 2021
1 parent 4cf9e3c commit acce22a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ yarn_mappings=1.16.5+build.10
loader_version=0.11.6

# Mod Properties
mod_version = 1.3.8
mod_version = 1.3.8-v2
maven_group = net.fabricmc
archives_base_name = time-and-wind

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public int calculateIrisWorldDayTime(long time){
if(timeOfDay > dayD){
timeOfDay -= dayD;
float r = timeOfDay / nightD * 100;
return Math.round(12000.0F / 100 * r);
return 12000 + Math.round(12000.0F / 100 * r);
} else {
float r = timeOfDay / dayD * 100;
return Math.round(12000.0F / 100 * r);
Expand Down

0 comments on commit acce22a

Please sign in to comment.