diff options
author | efefury <69400149+efefury@users.noreply.github.com> | 2023-02-06 14:02:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 15:02:26 +0100 |
commit | 2451485b81a2d3c4a4e65a2647a1a698144abe17 (patch) | |
tree | 0608ad67383a038c62786370c8738f22f5eae0fc /src | |
parent | fc576576b8aa18476766e166718d98a6c0fb4575 (diff) | |
download | NotEnoughUpdates-2451485b81a2d3c4a4e65a2647a1a698144abe17.tar.gz NotEnoughUpdates-2451485b81a2d3c4a4e65a2647a1a698144abe17.tar.bz2 NotEnoughUpdates-2451485b81a2d3c4a4e65a2647a1a698144abe17.zip |
Fix click in PV & Replace Texture (#589)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java | 12 | ||||
-rw-r--r-- | src/main/resources/assets/notenoughupdates/pv_levels.png | bin | 3526 -> 3386 bytes |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java index 7be94f86..265177fc 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java @@ -596,6 +596,12 @@ public class BasicPage extends GuiProfileViewerPage { sbLevelX - 30, sbLevelY + 20, true, 0, 0.9f ); + if (mouseX >= guiLeft + 128 && mouseX <= guiLeft + 216) { + if (mouseY >= guiTop + 69 && mouseY <= guiTop + 131) { + if (Mouse.isButtonDown(0)) onSecondPage = true; + } + } + if (skyblockInfo != null) { int position = 0; for (Map.Entry<String, ItemStack> entry : ProfileViewer.getSkillToSkillDisplayMap().entrySet()) { @@ -623,12 +629,6 @@ public class BasicPage extends GuiProfileViewerPage { getInstance().renderBar(x, y + 6, 80, level.level % 1); } - if (mouseX >= guiLeft + 128 && mouseX <= guiLeft + 216) { - if (mouseY >= guiTop + 69 && mouseY <= guiTop + 131) { - if (Mouse.isButtonDown(0)) onSecondPage = true; - } - } - if (mouseX > x && mouseX < x + 80) { if (mouseY > y - 4 && mouseY < y + 13) { getInstance().tooltipToDisplay = new ArrayList<>(); diff --git a/src/main/resources/assets/notenoughupdates/pv_levels.png b/src/main/resources/assets/notenoughupdates/pv_levels.png Binary files differindex 21810476..0b6bb093 100644 --- a/src/main/resources/assets/notenoughupdates/pv_levels.png +++ b/src/main/resources/assets/notenoughupdates/pv_levels.png |