Skip to content

Commit

Permalink
remove a useless server icon validState
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnoksio authored Aug 15, 2024
1 parent 838ca40 commit 421ee61
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,7 @@ private void a(ServerPing serverping) {
try {
final BufferedImage bufferedimage = ImageIO.read(file1);
Validate.validState(bufferedimage.getWidth() == bufferedimage.getHeight(), "Width must be equals to the height");
Validate.validState(bufferedimage.getWidth() == 64, "Must be 64 pixels wide");
Validate.validState(bufferedimage.getHeight() == 64, "Must be 64 pixels high");
Validate.validState(bufferedimage.getWidth() == 64, "Server icon must be 64x64");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ImageIO.write(bufferedimage, "PNG", baos);
byte[] imageInByte = baos.toByteArray();
Expand Down

0 comments on commit 421ee61

Please sign in to comment.