diff options
| author | DoKM <mcazzyman@gmail.com> | 2021-09-02 14:03:14 +0200 |
|---|---|---|
| committer | DoKM <mcazzyman@gmail.com> | 2021-09-02 14:03:14 +0200 |
| commit | 74db72ad590c74b040d0800d411c4e1f1270a09a (patch) | |
| tree | 8ebf9cdf596fae2ec6b149826475d1d84de9ec3a /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java | |
| parent | 05d6207281e18980b8a28046621c741fa81c1606 (diff) | |
| parent | 8eee6262a6e2c372240331f3c43c2279bd18539e (diff) | |
| download | notenoughupdates-74db72ad590c74b040d0800d411c4e1f1270a09a.tar.gz notenoughupdates-74db72ad590c74b040d0800d411c4e1f1270a09a.tar.bz2 notenoughupdates-74db72ad590c74b040d0800d411c4e1f1270a09a.zip | |
Merge remote-tracking branch 'Moulberry/master'
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.java | 6 |
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; |
