Skip to content

Commit

Permalink
Hide backup command invalid reason when not using custom command backups
Browse files Browse the repository at this point in the history
  • Loading branch information
Pokechu22 committed Jul 23, 2021
1 parent cd7cfc4 commit 254974d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion share/src/main/java/wdl/gui/GuiWDLBackup.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public void render(int mouseX, int mouseY, float partialTicks) {
this.drawString(font, "ಠ_ಠ", x, y, 0xFF0000); // See some of my experiences with dealing with rar files. Use a non-proprietary format, please, it's for your own good!
}
}
if (commandInvalidReason != null) {
if (!isCommandValid && commandInvalidReason != null) {
List<String> lines = Utils.wordWrap(commandInvalidReason, this.width - 50);
int y = 80;
for (String line : lines) {
Expand Down
2 changes: 1 addition & 1 deletion share_14/src/main/java/wdl/gui/GuiWDLBackup.java
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public void render(int mouseX, int mouseY, float partialTicks) {
this.drawString(font, "ಠ_ಠ", x, y, 0xFF0000); // See some of my experiences with dealing with rar files. Use a non-proprietary format, please, it's for your own good!
}
}
if (commandInvalidReason != null) {
if (!isCommandValid && commandInvalidReason != null) {
List<String> lines = this.wordWrap(commandInvalidReason, this.width - 50);
int y = 80;
for (String line : lines) {
Expand Down

0 comments on commit 254974d

Please sign in to comment.