Skip to content

Commit

Permalink
Merge pull request #6028 from GNosii/qol/supress-if-empty
Browse files Browse the repository at this point in the history
Auto-supress event message if empty
  • Loading branch information
LlmDl authored Jul 18, 2022
2 parents d25022e + d6aaba2 commit 9083b72
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ public String getMessage() {
* @param message Message shown to players when their build attempts is cancelled.
*/
public void setMessage(String message) {
this.message = message;
if (message.equals(""))
this.supressMessage(true);
else
this.message = message;
}

}

0 comments on commit 9083b72

Please sign in to comment.