From 7483d19f603790bf565fa65519d530cca6e6c144 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 25 Jan 2023 18:40:17 +0900 Subject: - no more scale :) Signed-off-by: syeyoung --- .../impl/party/playerpreview/widget/WidgetProfileViewerData.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewerData.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewerData.java index 3a3ca61d..13f9676f 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewerData.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewerData.java @@ -110,12 +110,9 @@ public class WidgetProfileViewerData extends AnnotatedWidget { if (popup == null) { PopupMgr popupMgr = PopupMgr.getPopupMgr(getDomElement()); - Scaler scaler = new Scaler(); - scaler.scale.setValue((double) new ScaledResolution(Minecraft.getMinecraft()).getScaleFactor()); - scaler.child.setValue(new WidgetPlayerInventory( + popupMgr.openPopup(popup = new AbsLocationPopup(x, y, new WidgetPlayerInventory( playerSkyblockData.getPlayerProfiles()[idx] - )); - popupMgr.openPopup(popup = new AbsLocationPopup(x, y, scaler, true), (a) -> { + ), true), (a) -> { this.popup = null; }); } -- cgit