1
mirror of https://github.com/Shiewk/Widgets.git synced 2026-04-28 11:34:17 +02:00

1.21.4 backport

This commit is contained in:
Shy
2025-11-27 12:02:00 +01:00
parent 5336b2f6d1
commit 269743269b
2 changed files with 5 additions and 5 deletions
@@ -102,7 +102,7 @@ public class RGBAColorWidgetSetting extends WidgetSettingOption {
MinecraftClient client = MinecraftClient.getInstance();
WidgetUtils.playSound(SoundEvents.BLOCK_COPPER_BULB_TURN_ON);
client.setScreen(
new ChangeScreen(client.currentScreen, (int) client.mouse.getScaledX(client.getWindow()), (int) client.mouse.getScaledY(client.getWindow()))
new ChangeScreen(client.currentScreen, (int) (client.mouse.getX() / client.getWindow().getScaleFactor()), (int) (client.mouse.getY() / client.getWindow().getScaleFactor()))
);
return true;
}