Skip to content

Commit

Permalink
Possibly fix weird map errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Mar 6, 2015
1 parent 4fd4dde commit db7384d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -109,7 +109,7 @@ public void render(MapView mapView, MapCanvas mapCanvas, dPlayer player, UUID uu
}

private static byte[] imageToBytes(Image image, int width, int height) {
BufferedImage temp = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
BufferedImage temp = new BufferedImage(image.getWidth(null), image.getHeight(null), BufferedImage.TYPE_INT_ARGB);
Graphics2D graphics = temp.createGraphics();
graphics.drawImage(image, 0, 0, width, height, null);
graphics.dispose();
Expand Down

0 comments on commit db7384d

Please sign in to comment.