aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-05-09 12:01:48 +0900
committersyeyoung <cyong06@naver.com>2021-05-09 12:01:48 +0900
commited5a2c9608fed63a0fd93d1bbd989d1aae9da11d (patch)
treec047618b8aee595a6fec0a21968c8fa4cc71f217 /src/main/java/kr/syeyoung
parent20e8dcb9bed36708f2d717efaa9c32477a9fcd8a (diff)
downloadSkyblock-Dungeons-Guide-ed5a2c9608fed63a0fd93d1bbd989d1aae9da11d.tar.gz
Skyblock-Dungeons-Guide-ed5a2c9608fed63a0fd93d1bbd989d1aae9da11d.tar.bz2
Skyblock-Dungeons-Guide-ed5a2c9608fed63a0fd93d1bbd989d1aae9da11d.zip
prevent showing invis prefixes.
Diffstat (limited to 'src/main/java/kr/syeyoung')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/cosmetics/PrefixSelectorGUI.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/cosmetics/PrefixSelectorGUI.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/cosmetics/PrefixSelectorGUI.java
index aa9f2f9b..9c09385a 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/cosmetics/PrefixSelectorGUI.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/cosmetics/PrefixSelectorGUI.java
@@ -109,6 +109,7 @@ public class PrefixSelectorGUI extends MPanel {
int cnt = 0;
for (CosmeticData value : cosmeticsManager.getCosmeticDataMap().values()) {
if (value.getCosmeticType().equals(cosmeticType)) {
+ if (!cosmeticsManager.getPerms().contains(value.getReqPerm()) && value.getReqPerm().startsWith("invis_")) continue;
Gui.drawRect(0,0,220, fr.FONT_HEIGHT+3, 0xFF222222);
Gui.drawRect(1,1, 219, fr.FONT_HEIGHT+2, 0xFF555555);
fr.drawString(optionTransformer.apply(value.getData()), 2, 2, -1);
@@ -148,6 +149,7 @@ public class PrefixSelectorGUI extends MPanel {
for (CosmeticData value : cosmeticsManager.getCosmeticDataMap().values()) {
if (value.getCosmeticType().equals(cosmeticType)) {
+ if (!cosmeticsManager.getPerms().contains(value.getReqPerm()) && value.getReqPerm().startsWith("invis_")) continue;
if (new Rectangle(120,cnt * (fr.FONT_HEIGHT+4) + 2,40,fr.FONT_HEIGHT+1).contains(relX, relY)) {
selected = value;
return;