diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2023-01-19 04:00:56 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-18 18:00:56 +0100 |
commit | 6bf6e75b23a49819c0a3ab97ffeb000240c0ad9d (patch) | |
tree | abd3f98235154cf73e8a6ddda8c0149c53e4b6fe /src/main | |
parent | 1f4d6925020a26d0662c3fe90672f5d4c831682d (diff) | |
download | NotEnoughUpdates-6bf6e75b23a49819c0a3ab97ffeb000240c0ad9d.tar.gz NotEnoughUpdates-6bf6e75b23a49819c0a3ab97ffeb000240c0ad9d.tar.bz2 NotEnoughUpdates-6bf6e75b23a49819c0a3ab97ffeb000240c0ad9d.zip |
Fixed 2nd pet skull not rendering and breaking with custom gui scale (#551)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java | 6 |
1 files changed, 4 insertions, 2 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 37cb14b5..1ba62308 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java @@ -721,16 +721,18 @@ public class PetInfoOverlay extends TextOverlay { JsonObject petItem2 = NotEnoughUpdates.INSTANCE.manager.getItemInformation().get( currentPet2.skin != null ? currentPet2.skin : (currentPet2.petType + ";" + currentPet2.rarity.petId)); if (petItem2 != null) { - Vector2f position = getPosition(overlayWidth, overlayHeight, false); + Vector2f position = getPosition(overlayWidth, overlayHeight, true); int x = (int) position.x; - int y = (int) position.y + NotEnoughUpdates.INSTANCE.config.petOverlay.petOverlayText.size() * 10 + 10; + int y = (int) position.y + NotEnoughUpdates.INSTANCE.config.petOverlay.petOverlayText.size() * 10; ItemStack stack = NotEnoughUpdates.INSTANCE.manager.jsonToStack(petItem2); GlStateManager.enableDepth(); GlStateManager.pushMatrix(); + Utils.pushGuiScale(NotEnoughUpdates.INSTANCE.config.locationedit.guiScale); GlStateManager.translate(x - 2, y - 2, 0); GlStateManager.scale(2, 2, 1); Utils.drawItemStack(stack, 0, 0); + Utils.pushGuiScale(0); GlStateManager.popMatrix(); } } |