diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-07-21 06:13:52 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-20 22:13:52 +0200 |
| commit | d395f34445813d4486ca993db09b7a2a1a1f3297 (patch) | |
| tree | 0c1fb2fedf82f84c2196a406a320dcbc1e8cb2ff | |
| parent | 6fc16be67c61425c6773327d5c5f6c99f56497aa (diff) | |
| download | notenoughupdates-d395f34445813d4486ca993db09b7a2a1a1f3297.tar.gz notenoughupdates-d395f34445813d4486ca993db09b7a2a1a1f3297.tar.bz2 notenoughupdates-d395f34445813d4486ca993db09b7a2a1a1f3297.zip | |
Fix pet item icon being offset if pet icon is off (#1259)
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java index 5e86f2ac..7f453446 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java @@ -668,7 +668,8 @@ public class PetInfoOverlay extends TextOverlay { if (petHeldItem != null) { Vector2f position = getPosition(overlayWidth, overlayHeight, true); - int x = (int) position.x; + int xOffset = NotEnoughUpdates.INSTANCE.config.petOverlay.petOverlayIcon ? 0 : 25; + int x = (int) position.x - xOffset; int y = (int) position.y; ItemStack stack = NotEnoughUpdates.INSTANCE.manager.jsonToStack(petHeldItem); |
