Skip to content

Commit b3b9a72

Browse files
committed
Correct small error in ColorUtil javadoc
1 parent 999ab26 commit b3b9a72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/gregtech/api/util/ColorUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ public enum ARGBHelper {
5858
* Remove the other two colors from the integer encoded ARGB and set the alpha to 255. <br/>
5959
* Will always return {@code 0xFF000000} if called on {@link #ALPHA}. <br/>
6060
* Unlike {@link #isolateAndShift(int)}, this will not be between 0 and 255. <br/>
61-
* Example: {@code GREEN.isolateWithFullAlpha(0xDEADBEEF)} will return {@code 0xFF00BE00} or {@code 4278238720}.
61+
* Example: {@code GREEN.isolateWithFullAlpha(0xDEADBEEF)} will return {@code 0xFF00BE00} or {@code -16728576}.
6262
*/
6363
public int isolateWithFullAlpha(int value) {
64-
return (value & overlay) | 0xFF000000;
64+
return (value & overlay) | ALPHA.overlay;
6565
}
6666

6767
/**

0 commit comments

Comments
 (0)