chore: cleanup annotations in api adventure patch

This commit is contained in:
Riley Park
2023-03-23 09:49:24 -07:00
parent c4351787c6
commit 39255145b6
64 changed files with 1308 additions and 1246 deletions

View File

@@ -397,8 +397,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
if (offers == null) {
- return cursor;
+ return; // Paper - Method returns void
+ }
+
}
- candidates.addAll(offers);
+ // Paper start - JLine update
+ for (String completion : offers) {
+ if (completion.isEmpty()) {
@@ -406,10 +407,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ }
+
+ candidates.add(new Candidate(completion));
}
- candidates.addAll(offers);
+ }
+ // Paper end
+
+ // Paper start - JLine handles cursor now
+ /*
final int lastSpace = buffer.lastIndexOf(' ');