aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
diff options
context:
space:
mode:
authorMoulberry <james.jenour@protonmail.com>2021-09-02 17:10:13 +0800
committerMoulberry <james.jenour@protonmail.com>2021-09-02 17:10:13 +0800
commit7cab76126da90f1884c111a1ee589b90a6ef828e (patch)
tree22fc3496e5fbfea4f01bcda045c91472bb6e5240 /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
parent81eea6bf1f653fa194735d892b40614389975dd3 (diff)
downloadnotenoughupdates-7cab76126da90f1884c111a1ee589b90a6ef828e.tar.gz
notenoughupdates-7cab76126da90f1884c111a1ee589b90a6ef828e.tar.bz2
notenoughupdates-7cab76126da90f1884c111a1ee589b90a6ef828e.zip
misc & bin warning & sort warning
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
index 01f789de..d84038fa 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java
@@ -429,7 +429,7 @@ public class GuiProfileViewer extends GuiScreen {
desk.browse(new URI("https://sky.shiiyu.moe/stats/"+profile.getHypixelProfile().get("displayname").getAsString()+"/"+profileId));
Utils.playPressSound();
return;
- } catch (IOException | URISyntaxException ignored) {
+ } catch (UnsupportedOperationException | IOException | URISyntaxException ignored) {
//no idea how this sounds, but ya know just in case
Utils.playSound(new ResourceLocation("game.player.hurt"), true);
return;
@@ -1259,14 +1259,10 @@ public class GuiProfileViewer extends GuiScreen {
}
public static PetLevel getPetLevel(String pet_name, String rarity, float exp) {
-
JsonObject petInfo = getPetInfo(pet_name, rarity);
int offset = petInfo.get("offset").getAsInt();
int maxPetLevel = petInfo.get("max_level").getAsInt();
JsonArray levels = petInfo.getAsJsonArray("pet_levels");
- System.out.println("Offset: "+offset);
- System.out.println("MaxPetLevel: "+maxPetLevel);
-
float xpTotal = 0;
float level = 1;