Skip to content

Commit c6bda88

Browse files
Use ARGB for the image
1 parent 3583308 commit c6bda88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/pistonmaster/soulfire/server/protocol/bot/state/MapDataState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void setColor(int x, int y, byte color) {
7474

7575
public BufferedImage toBufferedImage() {
7676
var image =
77-
new BufferedImage(128, 128, BufferedImage.TYPE_4BYTE_ABGR);
77+
new BufferedImage(128, 128, BufferedImage.TYPE_INT_ARGB);
7878
for (var x = 0; x < 128; ++x) {
7979
for (var y = 0; y < 128; ++y) {
8080
image.setRGB(x, y, convertABGRToARGB(MapColor.getColorFromPackedId(getColor(x, y))));

0 commit comments

Comments
 (0)