From aa291039838b012887cc801c7dc3b0d2c43c6b36 Mon Sep 17 00:00:00 2001 From: themode Date: Wed, 10 Mar 2021 01:25:01 +0100 Subject: [PATCH] Fix java 11 support --- .../minestom/server/command/builder/parser/CommandParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/command/builder/parser/CommandParser.java b/src/main/java/net/minestom/server/command/builder/parser/CommandParser.java index 01a3c7661..71fb73925 100644 --- a/src/main/java/net/minestom/server/command/builder/parser/CommandParser.java +++ b/src/main/java/net/minestom/server/command/builder/parser/CommandParser.java @@ -190,7 +190,7 @@ public class CommandParser { // Argument is supposed to take the rest of the command input for (int i = inputIndex; i < inputArguments.length; i++) { final String arg = inputArguments[i]; - if (!builder.isEmpty()) + if (builder.length() > 0) builder.append(StringUtils.SPACE); builder.append(arg); } @@ -236,7 +236,7 @@ public class CommandParser { // rawArg should be the remaining for (int j = i + 1; j < inputArguments.length; j++) { final String arg = inputArguments[j]; - if (!builder.isEmpty()) + if (builder.length() > 0) builder.append(StringUtils.SPACE); builder.append(arg); }