Translate the status message from the uploader

This commit is contained in:
Sollace 2018-08-22 01:05:13 +02:00
parent baa5982889
commit 3b27044f6c

View file

@ -339,7 +339,7 @@ public class GuiSkins extends GameGui implements ISkinUploadHandler {
drawRect(0, 0, width, height, opacity); drawRect(0, 0, width, height, opacity);
String errorMsg = uploader.getStatusMessage(); String errorMsg = format(uploader.getStatusMessage());
if (uploadInProgress) { if (uploadInProgress) {
drawCenteredString(fontRenderer, errorMsg, width / 2, height / 2, 0xffffff); drawCenteredString(fontRenderer, errorMsg, width / 2, height / 2, 0xffffff);
@ -423,7 +423,7 @@ public class GuiSkins extends GameGui implements ISkinUploadHandler {
} }
private void punchServer(String uploadMsg) { private void punchServer(String uploadMsg) {
uploader.uploadSkin(format(uploadMsg)).handle(CallableFutures.callback(this::updateButtons)); uploader.uploadSkin(uploadMsg).handle(CallableFutures.callback(this::updateButtons));
updateButtons(); updateButtons();
} }