File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Item Creator/src/main/java/org/broken/arrow/library/itemcreator/meta/map/pixel Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ public Image getImage() {
8383
8484 @ Override
8585 public void render (final @ Nonnull MapRendererData mapRendererData , @ Nonnull final MapCanvas canvas ) {
86- final Image image = this .getImage ();
87- canvas .drawImage (this .getX (), this .getY (), image );
86+ final Image imageToRender = this .getImage ();
87+ canvas .drawImage (this .getX (), this .getY (), imageToRender );
8888 }
8989
9090 /**
@@ -142,9 +142,9 @@ public byte[] imageToBytes() throws IOException {
142142 if (this .image == null )
143143 return new byte [0 ];
144144
145- final BufferedImage image = toBufferedImage (this .image );
145+ final BufferedImage bufferedImage = toBufferedImage (this .image );
146146 try (ByteArrayOutputStream output = new ByteArrayOutputStream ()) {
147- ImageIO .write (image , "png" , output );
147+ ImageIO .write (bufferedImage , "png" , output );
148148 return output .toByteArray ();
149149 }
150150 }
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ protected MapPixel(int x, int y) {
3232 * @param mapRendererData the global data set for the map
3333 * @param canvas the map canvas where this pixel's color, text, or image will be drawn
3434 */
35- abstract public void render (@ Nonnull final MapRendererData mapRendererData , @ Nonnull final MapCanvas canvas );
35+ public abstract void render (@ Nonnull final MapRendererData mapRendererData , @ Nonnull final MapCanvas canvas );
3636
3737
3838 /**
You can’t perform that action at this time.
0 commit comments