Skip to content

Commit

Permalink
fix: Quotes... again!
Browse files Browse the repository at this point in the history
  • Loading branch information
IMB11 committed Jul 7, 2024
1 parent b32e2d6 commit 758cd81
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
org.gradle.jvmargs=-Xmx1G

deps.loader=0.15.11
mod.version=2.0.2
mod.version=2.0.3
mod.name=SkinShuffle
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ public int getHeight() {
pathStr = home + pathStr.substring(1);
}

// Remove quotes from around the path
if (pathStr.startsWith("\"") && pathStr.endsWith("\"")) {
pathStr = pathStr.substring(1, pathStr.length() - 1);
}

textFieldWidget.setText(pathStr);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ protected Object getTextureUniqueness() {
@Override
protected @Nullable AbstractTexture loadTexture(Runnable completionCallback) {
try (var inputStream = Files.newInputStream(getFile())) {
try (var image = LegacySkinConverter.processTexture(NativeImage.read(NativeImage.Format.RGBA, inputStream))) {
var texture = new NativeImageBackedTexture(image);
completionCallback.run();
return texture;
}
var image = LegacySkinConverter.processTexture(NativeImage.read(NativeImage.Format.RGBA, inputStream));

var texture = new NativeImageBackedTexture(image);

completionCallback.run();
return texture;
} catch (Exception e) {
SkinShuffle.LOGGER.warn("Failed to load skin from file: " + getFile(), e);
return null;
Expand Down
2 changes: 1 addition & 1 deletion versions/1.20.1/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
runtime.modmenu=7.2.2
runtime.etf=Iqpdkpj4
runtime.etf=fqFnWIXs

mod.target=>=1.20 <=1.20.1

Expand Down
2 changes: 1 addition & 1 deletion versions/1.20.4/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
runtime.modmenu=9.2.0
runtime.etf=A9d30Vws
runtime.etf=9qagksz6

mod.target=>=1.20.3 <=1.20.4

Expand Down
2 changes: 1 addition & 1 deletion versions/1.20.6/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
runtime.modmenu=10.0.0
runtime.etf=aUpC497W
runtime.etf=EDWEfvFs

mod.target=>=1.20.5 <=1.20.6

Expand Down
2 changes: 1 addition & 1 deletion versions/1.21/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
runtime.modmenu=11.0.1
runtime.etf=8czGsT2L
runtime.etf=O3jDICoH

mod.target=1.21

Expand Down

0 comments on commit 758cd81

Please sign in to comment.