Bulb location in Insolator UI is broken #36

Closed
opened 2023-12-05 18:25:24 +00:00 by BlakeRain · 1 comment
Owner

The location of the lit bulb when running the Insolator with the new UI is in the wrong location (see attachment).

The location of the lit bulb when running the Insolator with the new UI is in the wrong location (see attachment).
BlakeRain added this to the v0.3.0-1.20.1 milestone 2023-12-05 18:25:24 +00:00
BlakeRain added the
Priority
Medium
Kind/Bug
labels 2023-12-05 18:25:24 +00:00
BlakeRain self-assigned this 2023-12-05 18:25:24 +00:00
BlakeRain added this to the Mod Development project 2023-12-05 18:25:24 +00:00
Author
Owner

The coordinates given in the code for the InsolatorScreen::renderBulb function are incorrect:

private void renderBulb(PoseStack stack) {
    if (menu.getBlockEntity().getActive()) {
        blit(stack, leftPos + 67, topPos + 38, 176, 25, 9, 14);
    }
}

The coordinates, according to Affinity are 133 and 37 (not 67 and 38).

The coordinates given in the [code](https://git.blakerain.com/bans-minecraft/utamacraft/src/commit/a40288fe7804b9a3825b16ff2e707930a7570172/src/main/java/net/banutama/utamacraft/screen/InsolatorScreen.java#L142) for the `InsolatorScreen::renderBulb` function are incorrect: ```java private void renderBulb(PoseStack stack) { if (menu.getBlockEntity().getActive()) { blit(stack, leftPos + 67, topPos + 38, 176, 25, 9, 14); } } ``` The coordinates, according to Affinity are 133 and 37 (not 67 and 38).
BlakeRain added the
Focus/UI
label 2023-12-17 10:30:34 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bans-minecraft/utamacraft#36
No description provided.