Skip to content

Commit

Permalink
fix bruh moment
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest authored Jun 23, 2024
1 parent 0a4b846 commit c9f6495
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void draw(long vg, int x, int y, InputHandler inputHandler) {
nanoVGHelper.drawRoundImage(vg, Images.ALPHA_GRID.filePath, x1 + 420, y + 4, 56, 24, 8f, getClass());
nanoVGHelper.drawRoundedRect(vg, x1 + 420, y + 4, 56, 24, color.getRGB(), 8f);
if (element.isClicked() && !open) {
OneColor finalColor = new OneColor(color.getHue(), color.getSaturation(), color.getBrightness(), color.getAlpha(), color.getDataBit() * 1000);
OneColor finalColor = new OneColor(color.getHue(), color.getSaturation(), color.getBrightness(), color.getAlpha(), color.getDataBit() == -1 ? color.getDataBit() : color.getDataBit() * 1000);
new RenderTickDelay(() -> {
open = true;
colorSelector = new ColorSelector(finalColor, inputHandler.mouseX(), inputHandler.mouseY(), allowAlpha, inputHandler);
Expand Down

0 comments on commit c9f6495

Please sign in to comment.