aboutsummaryrefslogtreecommitdiff
path: root/loader/src/main
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-02-07 10:32:39 +0900
committersyeyoung <cyoung06@naver.com>2023-02-07 10:32:39 +0900
commita22beb3bcd6b262a5c893330006c3fa3286ac785 (patch)
tree60856f94deb7ca6b4f05e889581d778e34924828 /loader/src/main
parentb9f5d57e6ceb50067ac88863655ebfdb92985f7a (diff)
downloadSkyblock-Dungeons-Guide-a22beb3bcd6b262a5c893330006c3fa3286ac785.tar.gz
Skyblock-Dungeons-Guide-a22beb3bcd6b262a5c893330006c3fa3286ac785.tar.bz2
Skyblock-Dungeons-Guide-a22beb3bcd6b262a5c893330006c3fa3286ac785.zip
- Sound
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'loader/src/main')
-rw-r--r--loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/WidgetPrivacyPolicy.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/WidgetPrivacyPolicy.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/WidgetPrivacyPolicy.java
index 0ee99c92..fc5e569e 100644
--- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/WidgetPrivacyPolicy.java
+++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/gui/screen/WidgetPrivacyPolicy.java
@@ -56,7 +56,7 @@ public class WidgetPrivacyPolicy extends AnnotatedImportOnlyWidget {
public WidgetPrivacyPolicy() {
super(new ResourceLocation("dungeons_guide_loader:gui/privacyPolicy/privacyPolicy.gui"));
- reload();
+ reload0();
}
@On(functionName = "accept")
@@ -71,9 +71,8 @@ public class WidgetPrivacyPolicy extends AnnotatedImportOnlyWidget {
Minecraft.getMinecraft().displayGuiScreen(null);
}
- @On(functionName = "reload")
- public void reload() {
- Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("gui.button.press"), 1.0F));
+
+ public void reload0() {
policyVisibility.setValue("loading");
executor.submit(() -> {
try {
@@ -98,4 +97,9 @@ public class WidgetPrivacyPolicy extends AnnotatedImportOnlyWidget {
}
});
}
+ @On(functionName = "reload")
+ public void reload() {
+ Minecraft.getMinecraft().getSoundHandler().playSound(PositionedSoundRecord.create(new ResourceLocation("gui.button.press"), 1.0F));
+ reload0();
+ }
}