aboutsummaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
Diffstat (limited to 'loader')
-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();
+ }
}