Don't call AsyncTabCompleteEvent from netty IO thread (#8218)

This commit is contained in:
Nassim Jahnke
2022-08-01 21:56:28 +02:00
parent aea4847e26
commit 3669c95014
7 changed files with 464 additions and 609 deletions

View File

@@ -17,7 +17,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ if (org.spigotmc.SpigotConfig.tabComplete < 0) {
+ return;
+ }
+ // Paper end
+ // Paper end - Don't suggest if tab-complete is disabled
// Paper start - async tab completion
TAB_COMPLETE_EXECUTOR.execute(() -> {
StringReader stringreader = new StringReader(packet.getCommand());
if (stringreader.canRead() && stringreader.peek() == '/') {