From 86d7ac43af51c0e7f616b1f3550b0496e13d208c Mon Sep 17 00:00:00 2001 From: Dietrich Friday Date: Sun, 26 Nov 2023 07:50:17 +0900 Subject: [PATCH] Rotates entities on widgets into the light (#143) This rotates entity icons on widgets (tasks, and in theory, rewards) -45 instead of 45. This faces the entity into the light, instead of into shadow. For villager professions, the 'face' face of their textures, generall, has key visually distingishing features. Hence, this change improves their legibility, especially they are rendered small enough to fit the widget. An alternate fix, probably better but unknown to me how or if is possible, would be to move the light 90 degrees. Would love to learn how if so. --- .../java/earth/terrarium/heracles/api/client/WidgetUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/earth/terrarium/heracles/api/client/WidgetUtils.java b/common/src/main/java/earth/terrarium/heracles/api/client/WidgetUtils.java index e9641051..58d6c252 100644 --- a/common/src/main/java/earth/terrarium/heracles/api/client/WidgetUtils.java +++ b/common/src/main/java/earth/terrarium/heracles/api/client/WidgetUtils.java @@ -85,7 +85,7 @@ public static void drawEntity(GuiGraphics graphics, int x, int y, int size, Enti x += (int) (size / 40f < 1 ? -6 * size / 40f : 5 * size / 40f); y += (int) (size / 40f < 1 ? -6 * size / 40f : 8 * size / 35f); - float rot = 45f; + float rot = -45f; if (entity instanceof EnderDragon) { // Ender dragon is rotated 180 degrees rot = 225f;