From 248f925b99621f3daf0ac6eac43d90989704a406 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Tue, 11 Aug 2020 22:20:27 -0400 Subject: [PATCH] Fix --- src/main/java/com/thebrokenrail/gestus/skin/SkinColor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/thebrokenrail/gestus/skin/SkinColor.java b/src/main/java/com/thebrokenrail/gestus/skin/SkinColor.java index 2299e4c..8c34cb8 100644 --- a/src/main/java/com/thebrokenrail/gestus/skin/SkinColor.java +++ b/src/main/java/com/thebrokenrail/gestus/skin/SkinColor.java @@ -77,7 +77,7 @@ public final class SkinColor { } private static Color averageColor(Color color1, Color color2) { - int sumRed = color1.getRed() + color2.getRed(); + long sumRed = color1.getRed() + color2.getRed(); long sumGreen = color1.getGreen() + color2.getGreen(); long sumBlue = color1.getBlue() + color2.getBlue(); return new Color(sumRed / 2, sumGreen / 2, sumBlue / 2);