diff options
Diffstat (limited to 'mod/src/main/java/kr')
2 files changed, 2 insertions, 7 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/FeatureViewPlayerStatsOnJoin.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/FeatureViewPlayerStatsOnJoin.java index 706b5c28..f4ca5437 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/FeatureViewPlayerStatsOnJoin.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/FeatureViewPlayerStatsOnJoin.java @@ -140,8 +140,7 @@ public class FeatureViewPlayerStatsOnJoin extends SimpleFeature { double width = 220 * scaledResolution.getScaleFactor(); double height = 220 * scaledResolution.getScaleFactor(); widget = new OverlayWidget( - new WidgetProfileViewer(gameProfile, FeatureRegistry.PARTYKICKER_APIKEY.getAPIKey(), - scaledResolution.getScaleFactor(), () -> { + new WidgetProfileViewer(gameProfile, FeatureRegistry.PARTYKICKER_APIKEY.getAPIKey(), () -> { if (widget != null) { OverlayManager.getInstance().removeOverlay(widget); widget = null; diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewer.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewer.java index a5109610..018d77f1 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewer.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/party/playerpreview/widget/WidgetProfileViewer.java @@ -39,13 +39,10 @@ public class WidgetProfileViewer extends AnnotatedWidget { public final BindableAttribute<Widget> actualPV = new BindableAttribute<>(Widget.class, null); @Bind(variableName = "visible") public final BindableAttribute<String> visiblePage = new BindableAttribute<>(String.class, "fetching"); - - @Bind(variableName = "scale") - public final BindableAttribute<Double> scale = new BindableAttribute<>(Double.class, 1.0); private GameProfile gameProfile; private String apiKey; private Runnable close; - public WidgetProfileViewer(GameProfile gameProfile, String apiKey, double scale, Runnable close) { + public WidgetProfileViewer(GameProfile gameProfile, String apiKey, Runnable close) { super(new ResourceLocation("dungeonsguide:gui/features/profileViewer/pv.gui")); if (apiKey.isEmpty()) { visiblePage.setValue("apiKeyInvalid"); @@ -53,7 +50,6 @@ public class WidgetProfileViewer extends AnnotatedWidget { } this.gameProfile = gameProfile; this.apiKey = apiKey; - this.scale.setValue(scale); this.close = close; refresh(); } |