mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 04:09:40 +00:00
Fixed a crash when autocompleting a player's name near a Corporea Index.
This commit is contained in:
1 parent
c1faf6ac97
commit
493664317b
1 file changed
+5
-1
@@ -142,8 +142,12 @@ public class CorporeaAutoCompleteHandler {
|
||||
}
|
||||
|
||||
private ArrayList<CompletionData> getNames(String prefix) {
|
||||
String s = prefix.trim();
|
||||
if(s.isEmpty())
|
||||
return new ArrayList();
|
||||
|
||||
TreeSet<CompletionData> result = new TreeSet<CompletionData>();
|
||||
String[] words = prefix.split(" ");
|
||||
String[] words = s.split(" ");
|
||||
int i = words.length - 1;
|
||||
String curPrefix = words[i];
|
||||
while(i >= 0) {
|
||||
|
||||
Reference in new issue
Block a user