aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/PronounsCommand.java
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <roman.graef@gmail.com>2023-02-15 18:50:56 +0100
committerGitHub <noreply@github.com>2023-02-15 18:50:56 +0100
commitd3ca199f904cd72e419c6320eda261f023c71937 (patch)
tree32ea0eb2ceac0e1cb24ab09b21f5e5581f809a39 /src/main/java/io/github/moulberry/notenoughupdates/commands/misc/PronounsCommand.java
parente0ab2af457daf50b838248afbc4110c97a0c8b4a (diff)
downloadnotenoughupdates-d3ca199f904cd72e419c6320eda261f023c71937.tar.gz
notenoughupdates-d3ca199f904cd72e419c6320eda261f023c71937.tar.bz2
notenoughupdates-d3ca199f904cd72e419c6320eda261f023c71937.zip
ApiUtil: Add cache with per request timeout and per class histogram (#592)
* ApiUtil: Add cache with per request timeout and per class histogram * MinionHelper: Only load minion helper data when needed * Api: Make api response processing more async. * Lower cache for /pv to 30 seconds and rename cacheDuration to max age * Disk cache for the API
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/commands/misc/PronounsCommand.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/commands/misc/PronounsCommand.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/PronounsCommand.java b/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/PronounsCommand.java
index 5a4f1400..cf0d0c56 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/PronounsCommand.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/PronounsCommand.java
@@ -88,7 +88,7 @@ public class PronounsCommand extends ClientCommandBase {
"§e[NEU] Pronouns for §b" + user + " §eon §b" + platform + "§e:"), id);
betterPronounChoice.render().forEach(it -> nc.printChatMessage(new ChatComponentText("§e[NEU] §a" + it)));
return null;
- }, MinecraftExecutor.INSTANCE);
+ }, MinecraftExecutor.OnThread);
}
}