From efb389bdad8afe34f746fdbc5328f68aa64aba76 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Fri, 6 May 2022 23:36:14 +0900 Subject: - Remove unnecessary close of mechanic browser tooltip. Mechanic Browser Tooltip will be closed on first click, no need to close it again --- .../features/impl/secret/mechanicbrowser/PanelMechanicBrowser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/PanelMechanicBrowser.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/PanelMechanicBrowser.java index caf7bf8e..25b23e71 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/PanelMechanicBrowser.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/secret/mechanicbrowser/PanelMechanicBrowser.java @@ -258,8 +258,8 @@ public class PanelMechanicBrowser extends MPanelScaledGUI { mechanicBrowserTooltip.getMList().add(new MechanicBrowserElement(() -> state, false, (m2, pt2) -> { if (dungeonRoom.getRoomProcessor() instanceof GeneralRoomProcessor) ((GeneralRoomProcessor)dungeonRoom.getRoomProcessor()).pathfind("MECH-BROWSER", id, state, FeatureRegistry.SECRET_LINE_PROPERTIES_SECRET_BROWSER.getRouteProperties()); - mechanicBrowserTooltip.close(); - mechanicBrowserTooltip = null; +// mechanicBrowserTooltip.close(); +// mechanicBrowserTooltip = null; })); } mechanicBrowserTooltip.setScale(getScale()); -- cgit