Properly clear the error state after uploading

This commit is contained in:
Sollace 2022-11-25 19:52:36 +00:00
parent 35eea7aa3a
commit 652e3247a3

View file

@ -185,7 +185,7 @@ public class SkinUploader implements Closeable {
return CompletableFuture.runAsync(() -> {
try {
gateway.performSkinUpload(new SkinUpload(mc.getSession(), skinType, localSkin == null ? null : localSkin.toURI(), skinMetadata));
setError("");
setError(null);
} catch (Exception e) {
handleException(e);
}