diff --git a/src/main/java/ml/codeboy/thebot/WeatherUtil.java b/src/main/java/ml/codeboy/thebot/WeatherUtil.java index a68caae..a19600b 100644 --- a/src/main/java/ml/codeboy/thebot/WeatherUtil.java +++ b/src/main/java/ml/codeboy/thebot/WeatherUtil.java @@ -38,7 +38,7 @@ public static BufferedImage generateForecastImage(List forecasts, int } Forecast last = null; - for (int i = 0; i < values; i++) { + for (int i = 0; i <= values; i++) { Forecast forecast = forecasts.get(i); double lastTemp = forecast.getAirTemperature(); @@ -59,18 +59,6 @@ public static BufferedImage generateForecastImage(List forecasts, int g.fillPolygon(new int[]{startX, endX, endX, startX}, new int[]{startY, endY, image.getHeight(), image.getHeight()}, 4); - if (i == values - 1) { - g.setColor(Color.ORANGE); - startX += (size + space); - endX += (size + space); - - g.drawLine(startX, endY, endX, endY); - - g.setColor(transparentYellow); - - g.fillPolygon(new int[]{startX, endX, endX, startX}, new int[]{endY, endY, image.getHeight(), image.getHeight()}, 4); - } - g.setColor(Color.BLACK); int x = i * (size + space) - space / 2; if (i != 0)