diff options
author | jani270 <69345714+jani270@users.noreply.github.com> | 2024-01-23 20:16:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 20:16:24 +0100 |
commit | b4592db62a047900dd814cc2e21ede6d7aa3d74c (patch) | |
tree | 01031f88268cd10902166846fda6d491282b93ad /src/main/java/io | |
parent | 25b0c0b8dc2776c2649c3e91a718093c23745aa4 (diff) | |
download | NotEnoughUpdates-b4592db62a047900dd814cc2e21ede6d7aa3d74c.tar.gz NotEnoughUpdates-b4592db62a047900dd814cc2e21ede6d7aa3d74c.tar.bz2 NotEnoughUpdates-b4592db62a047900dd814cc2e21ede6d7aa3d74c.zip |
Hide OldSBMenu and PetOverlay while being in the rift (#1008)
* feat: Hide OldSBMenu and PetOverlay while being in the rift
* Update src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java
Co-authored-by: Linnea Gräf <nea@nea.moe>
* change: == to .equals
---------
Co-authored-by: Linnea Gräf <nea@nea.moe>
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java | 4 |
1 files changed, 3 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 557ecf84..505124d7 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/PetInfoOverlay.java @@ -37,6 +37,7 @@ import io.github.moulberry.notenoughupdates.overlays.TextOverlay; import io.github.moulberry.notenoughupdates.overlays.TextOverlayStyle; import io.github.moulberry.notenoughupdates.util.Constants; import io.github.moulberry.notenoughupdates.util.PetLeveling; +import io.github.moulberry.notenoughupdates.util.SBInfo; import io.github.moulberry.notenoughupdates.util.Utils; import io.github.moulberry.notenoughupdates.util.XPInformation; import net.minecraft.client.Minecraft; @@ -368,7 +369,8 @@ public class PetInfoOverlay extends TextOverlay { @Override public void updateFrequent() { Pet currentPet = getCurrentPet(); - if (!NotEnoughUpdates.INSTANCE.config.petOverlay.enablePetInfo || currentPet == null) { + if (!NotEnoughUpdates.INSTANCE.config.petOverlay.enablePetInfo || currentPet == null || + Objects.equals(SBInfo.getInstance().getLocation(), "rift")) { overlayStrings = null; } else { firstPetLines = 0; |