IMB11 / SkinShuffle

Choose and change your skin in-game!
https://modrinth.com/mod/skinshuffle
Other
17 stars 8 forks source link

Too many cape request (anotther player in server) #41

Closed ItsukaHiro closed 7 months ago

ItsukaHiro commented 11 months ago

Describe the issue

The console (client-side) spam too many request:

[13:57:40] [Thread-201/INFO]: Requested cape metadata at 1bls0hth for minecraft
[13:57:40] [Thread-201/INFO]: Failed to run cape provider "minecraft"
[13:57:40] [Thread-201/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:40] [Thread-202/INFO]: Requested cape metadata at jmpy7ssz for minecraft
[13:57:40] [Thread-202/INFO]: Failed to run cape provider "minecraft"
[13:57:40] [Thread-202/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:40] [Thread-179/INFO]: Requested cape metadata at ToxicPotion for minecraft
[13:57:40] [Thread-196/INFO]: Requested cape metadata at DarkWolf245 for minecraft
[13:57:40] [Thread-182/INFO]: Requested cape metadata at ultimatey123 for minecraftcapes
[13:57:40] [Thread-182/INFO]: Failed to run cape provider "minecraftcapes"
[13:57:40] [Thread-182/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:40] [Thread-183/INFO]: Requested cape metadata at Kan1shqYT for minecraftcapes
[13:57:40] [Thread-183/INFO]: Failed to run cape provider "minecraftcapes"
[13:57:40] [Thread-183/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:40] [Thread-181/INFO]: Requested cape metadata at SETH1993 for minecraftcapes
[13:57:40] [Thread-184/INFO]: Requested cape metadata at ItsCarbonPlayz for minecraftcapes
[13:57:40] [Thread-184/INFO]: Failed to run cape provider "minecraftcapes"
[13:57:40] [Thread-184/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:40] [Thread-195/INFO]: Requested cape metadata at ZuLuGamingg for minecraftcapes
[13:57:40] [Thread-195/INFO]: Failed to run cape provider "minecraftcapes"
[13:57:40] [Thread-195/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:40] [Thread-197/INFO]: Requested cape metadata at skywalkerhardsok for minecraftcapes
[13:57:40] [Thread-197/INFO]: Failed to run cape provider "minecraftcapes"
[13:57:40] [Thread-197/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:40] [Thread-185/INFO]: Requested cape metadata at SPIDERMAN1795 for minecraftcapes
[13:57:40] [Thread-185/INFO]: Failed to run cape provider "minecraftcapes"
[13:57:40] [Thread-185/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:40] [Thread-193/INFO]: Requested cape metadata at hero2332 for minecraftcapes
[13:57:40] [Thread-193/INFO]: Failed to run cape provider "minecraftcapes"
[13:57:40] [Thread-193/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:40] [Thread-186/INFO]: Requested cape metadata at devarc_pro for minecraftcapes
[13:57:40] [Thread-186/INFO]: Failed to run cape provider "minecraftcapes"
[13:57:40] [Thread-186/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:40] [Thread-194/INFO]: Requested cape metadata at question999 for minecraftcapes
[13:57:40] [Thread-194/INFO]: Failed to run cape provider "minecraftcapes"
[13:57:40] [Thread-194/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:41] [Thread-203/INFO]: Requested cape metadata at b5o1uc5d for optifine
[13:57:41] [Thread-203/INFO]: Failed to run cape provider "optifine"
[13:57:41] [Thread-203/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:41] [Thread-201/INFO]: Requested cape metadata at 1bls0hth for optifine
[13:57:41] [Thread-201/INFO]: Failed to run cape provider "optifine"
[13:57:41] [Thread-201/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null
[13:57:41] [Thread-202/INFO]: Requested cape metadata at jmpy7ssz for optifine
[13:57:41] [Thread-202/INFO]: Failed to run cape provider "optifine"
[13:57:41] [Thread-202/INFO]: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsBoolean()" because the return value of "com.google.gson.JsonObject.get(String)" is null

I think the mod should have a option to disable other players' cape or something like that (should also for player him/herself).

*Note: I disabled render cape in skin setting (vanilla setting) but nothing change, the console still have many spam.

Relevant log output

No response

SkinShuffle version

1.0.0 - 1.20

Extra information

No response