From c6bda8850336107860496c93dbf7d3be5d6c94c1 Mon Sep 17 00:00:00 2001 From: AlexProgrammerDE <40795980+AlexProgrammerDE@users.noreply.github.com> Date: Sun, 18 Feb 2024 12:17:18 +0100 Subject: [PATCH] Use ARGB for the image --- .../soulfire/server/protocol/bot/state/MapDataState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pistonmaster/soulfire/server/protocol/bot/state/MapDataState.java b/src/main/java/net/pistonmaster/soulfire/server/protocol/bot/state/MapDataState.java index ff46c490a..f7a0fe0fa 100644 --- a/src/main/java/net/pistonmaster/soulfire/server/protocol/bot/state/MapDataState.java +++ b/src/main/java/net/pistonmaster/soulfire/server/protocol/bot/state/MapDataState.java @@ -74,7 +74,7 @@ public void setColor(int x, int y, byte color) { public BufferedImage toBufferedImage() { var image = - new BufferedImage(128, 128, BufferedImage.TYPE_4BYTE_ABGR); + new BufferedImage(128, 128, BufferedImage.TYPE_INT_ARGB); for (var x = 0; x < 128; ++x) { for (var y = 0; y < 128; ++y) { image.setRGB(x, y, convertABGRToARGB(MapColor.getColorFromPackedId(getColor(x, y))));