From 6dace63cb043c0e137222a4fd9b12bd2126b5ec5 Mon Sep 17 00:00:00 2001 From: pixtaded Date: Sat, 11 Jan 2025 16:28:43 +0300 Subject: [PATCH] Fix some vladcode --- src/main/java/net/pixtaded/crab/client/CrabClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pixtaded/crab/client/CrabClient.java b/src/main/java/net/pixtaded/crab/client/CrabClient.java index 52ed5db..c435438 100644 --- a/src/main/java/net/pixtaded/crab/client/CrabClient.java +++ b/src/main/java/net/pixtaded/crab/client/CrabClient.java @@ -68,7 +68,7 @@ public class CrabClient implements Crab { System.out.print("Enter your nickname (leave empty for no nickname): "); nickname = scanner.nextLine(); - if (nickname != "") + if (!nickname.isEmpty()) nickname = "<" + nickname + "> "; }