Skip to content

Commit

Permalink
Merge pull request #31 from meteorOSS/master
Browse files Browse the repository at this point in the history
fix: single char error
  • Loading branch information
PeachesMLG authored Feb 11, 2024
2 parents ad27bde + 8814046 commit b5591b9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ private static ChatColor[] createRainbow(int step, float saturation) {
*/
@Nonnull
private static ChatColor[] createGradient(@Nonnull Color start, @Nonnull Color end, int step) {
step = Math.max(step,2);
ChatColor[] colors = new ChatColor[step];
int stepR = Math.abs(start.getRed() - end.getRed()) / (step - 1);
int stepG = Math.abs(start.getGreen() - end.getGreen()) / (step - 1);
Expand Down

0 comments on commit b5591b9

Please sign in to comment.