diff options
-rw-r--r-- | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/secret/mechanicbrowser/WidgetSecret.java | 9 |
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() { |