Some more encapsulation

This commit is contained in:
Daniil Z committed 2021-03-01 21:05:59 +03:00
1 parent afafcee2bb
commit 45f99cacf6
8 files changed
+33 -17

No files matched your search

@@ -222,7 +222,7 @@ public class EdithomeCommand extends CommandBase implements TabCompleter {
}
if (args.length == 1) {
final List<String> tabCompletions = new ArrayList<>();
StringUtil.copyPartialMatches(args[0], HomeCommand.Tab.homeTabCache.get(p.getUniqueId()), tabCompletions);
StringUtil.copyPartialMatches(args[0], HomeCommand.Tab.getHomeTabCache().get(p.getUniqueId()), tabCompletions);
Collections.sort(tabCompletions);
return tabCompletions;
} else if (args.length == 2) {