From 3b27044f6c00bd5480cfa401d1e499c0bd4f4471 Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 22 Aug 2018 01:05:13 +0200 Subject: [PATCH] Translate the status message from the uploader --- src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java b/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java index ffaffa0a..41f96fb3 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java @@ -339,7 +339,7 @@ public class GuiSkins extends GameGui implements ISkinUploadHandler { drawRect(0, 0, width, height, opacity); - String errorMsg = uploader.getStatusMessage(); + String errorMsg = format(uploader.getStatusMessage()); if (uploadInProgress) { drawCenteredString(fontRenderer, errorMsg, width / 2, height / 2, 0xffffff); @@ -423,7 +423,7 @@ public class GuiSkins extends GameGui implements ISkinUploadHandler { } private void punchServer(String uploadMsg) { - uploader.uploadSkin(format(uploadMsg)).handle(CallableFutures.callback(this::updateButtons)); + uploader.uploadSkin(uploadMsg).handle(CallableFutures.callback(this::updateButtons)); updateButtons(); }