Skip to content

Commit

Permalink
Fix positive min build heights (8bd636e#r139202489)
Browse files Browse the repository at this point in the history
  • Loading branch information
pupnewfster committed Feb 29, 2024
1 parent e9ea15f commit 677d5af
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -86,7 +86,7 @@ public float getHeightSpeedRatio() {
}
//Shift so that a wind generator at the min build height acts as if it was at a height of zero
int minBuildHeight = level.getMinBuildHeight();
height += Math.abs(minBuildHeight);
height -= minBuildHeight;
return SPEED * height / (level.getMaxBuildHeight() - minBuildHeight);
}

Expand Down

0 comments on commit 677d5af

Please sign in to comment.