mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-24 17:11:58 +01:00
Fix java 11 support
This commit is contained in:
parent
bca2434cff
commit
aa29103983
@ -190,7 +190,7 @@ public class CommandParser {
|
|||||||
// Argument is supposed to take the rest of the command input
|
// Argument is supposed to take the rest of the command input
|
||||||
for (int i = inputIndex; i < inputArguments.length; i++) {
|
for (int i = inputIndex; i < inputArguments.length; i++) {
|
||||||
final String arg = inputArguments[i];
|
final String arg = inputArguments[i];
|
||||||
if (!builder.isEmpty())
|
if (builder.length() > 0)
|
||||||
builder.append(StringUtils.SPACE);
|
builder.append(StringUtils.SPACE);
|
||||||
builder.append(arg);
|
builder.append(arg);
|
||||||
}
|
}
|
||||||
@ -236,7 +236,7 @@ public class CommandParser {
|
|||||||
// rawArg should be the remaining
|
// rawArg should be the remaining
|
||||||
for (int j = i + 1; j < inputArguments.length; j++) {
|
for (int j = i + 1; j < inputArguments.length; j++) {
|
||||||
final String arg = inputArguments[j];
|
final String arg = inputArguments[j];
|
||||||
if (!builder.isEmpty())
|
if (builder.length() > 0)
|
||||||
builder.append(StringUtils.SPACE);
|
builder.append(StringUtils.SPACE);
|
||||||
builder.append(arg);
|
builder.append(arg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user