Skip to content

Commit

Permalink
fix: MojangUtil counter doesn't count fake request
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Feb 9, 2024
1 parent 7d97fb5 commit 5a01a54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/gg/skytils/skytilsmod/utils/MojangUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ object MojangUtil {
private suspend fun makeMojangRequest(url: String): HttpResponse {
if (requestCount.incrementAndGet() % 6 == 0) {
client.get("https://api.minecraftservices.com/minecraft/profile/lookup/name/SlashSlayer?ts=${System.currentTimeMillis()}")
requestCount.getAndIncrement()
}
return client.get(url)
}
Expand Down

0 comments on commit 5a01a54

Please sign in to comment.