aboutsummaryrefslogtreecommitdiff
path: root/mod/src
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-02-11 19:19:00 +0900
committersyeyoung <cyoung06@naver.com>2023-02-11 19:19:00 +0900
commitf1969e6e75c99066173ac613d5e9004d04205889 (patch)
treeb33c2690164a5f87928e879c1158b2a1e1e8f30d /mod/src
parentdc5283d8c3b0ecabd0334487b4e73dfb3ebc28b8 (diff)
downloadSkyblock-Dungeons-Guide-f1969e6e75c99066173ac613d5e9004d04205889.tar.gz
Skyblock-Dungeons-Guide-f1969e6e75c99066173ac613d5e9004d04205889.tar.bz2
Skyblock-Dungeons-Guide-f1969e6e75c99066173ac613d5e9004d04205889.zip
- update secret status in mechanic browser
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src')
-rw-r--r--mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/mechanicbrowser/WidgetSecret.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/mechanicbrowser/WidgetSecret.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/mechanicbrowser/WidgetSecret.java
index 0642da1b..a73ee4c0 100644
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/mechanicbrowser/WidgetSecret.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/mechanicbrowser/WidgetSecret.java
@@ -54,6 +54,15 @@ public class WidgetSecret extends AnnotatedWidget {
this.onSelect = selectedId;
}
+ @Override
+ public void onMount() {
+ super.onMount();
+ secretName.setValue(id+" ยง7("+ mechanic.getCurrentState(room) +", "+
+ (mechanic.getRepresentingPoint(room) != null ?
+ String.format("%.1f", MathHelper.sqrt_double(mechanic.getRepresentingPoint(room).getBlockPos(room).distanceSq(Minecraft.getMinecraft().thePlayer.getPosition()))) : "")
+ +"m)");
+ }
+
private AbsLocationPopup popup;
@On(functionName = "toggleStates")
public void openStates() {