cleanup
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m27s
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m27s
This commit is contained in:
@ -38,7 +38,7 @@ public class Skin {
|
||||
/**
|
||||
* The legacy status of the skin
|
||||
*/
|
||||
private boolean isLegacy = false;
|
||||
private boolean legacy;
|
||||
|
||||
/**
|
||||
* The skin image for the skin
|
||||
@ -60,9 +60,7 @@ public class Skin {
|
||||
if (this.skinImage != null) {
|
||||
try {
|
||||
BufferedImage image = ImageIO.read(new ByteArrayInputStream(this.skinImage));
|
||||
if (image.getWidth() == 64 && image.getHeight() == 32) { // Using the old skin format
|
||||
this.isLegacy = true;
|
||||
}
|
||||
this.legacy = image.getWidth() == 64 && image.getHeight() == 32;
|
||||
} catch (Exception ignored) {}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user