Skip to content

Commit

Permalink
Fixed minorly incorrect display of hydroponics unit plant status
Browse files Browse the repository at this point in the history
  • Loading branch information
dagger8243 committed Sep 14, 2024
1 parent c43752b commit b1f65b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private String getPlantStatus(final float growStatus) {
return EnumColor.DARK_RED + GCCoreUtil.translate("tile.hydroponics.noplant");
}
if (growStatus < 1.0F) {
return EnumColor.YELLOW.getCode() + Math.floor(this.tile.getPlantGrowthStatus() * 100) + "%";
return EnumColor.YELLOW.getCode() + String.format("%.1f", this.tile.getPlantGrowthStatus() * 100) + "%";
}
return EnumColor.DARK_GREEN + "100%";
}
Expand Down

0 comments on commit b1f65b3

Please sign in to comment.