Skip to content

Commit

Permalink
fix: Try to solve #86
Browse files Browse the repository at this point in the history
  • Loading branch information
IMB11 committed Jul 9, 2024
1 parent 07ccfca commit ed65085
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ protected Object getTextureUniqueness() {
try (var inputStream = Files.newInputStream(getFile())) {
var image = LegacySkinConverter.processTexture(NativeImage.read(NativeImage.Format.RGBA, inputStream));

if(image == null) throw new RuntimeException("Texture is null!");

var texture = new NativeImageBackedTexture(image);

completionCallback.run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public static NativeImage processTexture(NativeImage image) {
}
if (isImageHeight32) {
boolean finished = false;
int i = 0;
int j = 0;
int i;
int j;
for(i = 32; i < 64; ++i) {
for(j = 0; j < 32; ++j) {
int k = image.getColor(i, j);
Expand Down

0 comments on commit ed65085

Please sign in to comment.