diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-08-27 01:50:07 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-08-27 01:50:07 -0400 |
commit | c1ddb82463894e7a2604d85b57f5be640bfbf115 (patch) | |
tree | b894cc10abea5242113e50619680315051474d2a /src/main/java/me/Danker | |
parent | 4cf29751c3119c41ca8ae62650a9b0bba72e8c9f (diff) | |
download | SkyblockMod-c1ddb82463894e7a2604d85b57f5be640bfbf115.tar.gz SkyblockMod-c1ddb82463894e7a2604d85b57f5be640bfbf115.tar.bz2 SkyblockMod-c1ddb82463894e7a2604d85b57f5be640bfbf115.zip |
Fix pet colours being offset by 1 pixel on some GUI scales
Diffstat (limited to 'src/main/java/me/Danker')
-rw-r--r-- | src/main/java/me/Danker/utils/Utils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/utils/Utils.java b/src/main/java/me/Danker/utils/Utils.java index 0a6cebc..45479f7 100644 --- a/src/main/java/me/Danker/utils/Utils.java +++ b/src/main/java/me/Danker/utils/Utils.java @@ -127,7 +127,7 @@ public class Utils { public static void drawOnSlot(int size, int xSlotPos, int ySlotPos, int colour) { ScaledResolution sr = new ScaledResolution(Minecraft.getMinecraft()); int guiLeft = (sr.getScaledWidth() - 176) / 2; - int guiTop = (sr.getScaledHeight() - 221) / 2; + int guiTop = (sr.getScaledHeight() - 222) / 2; int x = guiLeft + xSlotPos; int y = guiTop + ySlotPos; // Move down when chest isn't 6 rows |