diff options
| author | Lulonaut <67191924+Lulonaut@users.noreply.github.com> | 2022-02-12 15:51:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-13 01:51:37 +1100 |
| commit | 93a1cb847bda30d976057954a408c615e0b08119 (patch) | |
| tree | f77b9feb5047af85086fb760626c52946735a376 /src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java | |
| parent | f11f6953a207606ae920ede9e713467a47cfc018 (diff) | |
| download | notenoughupdates-93a1cb847bda30d976057954a408c615e0b08119.tar.gz notenoughupdates-93a1cb847bda30d976057954a408c615e0b08119.tar.bz2 notenoughupdates-93a1cb847bda30d976057954a408c615e0b08119.zip | |
Hide SlayerOverlay when not at a suitable location, made pet in inv force disabled and made new option to hide tooltip of pet (#79)
Co-authored-by: jani270 <jani270@gmx.de>
Co-authored-by: nopo <noahogno@gmail.com>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java b/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java index 7b5a29a9..50c113ce 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/SBInfo.java @@ -55,6 +55,7 @@ public class SBInfo { public String time = ""; public String objective = ""; public String slayer = ""; + public boolean stranded = false; public String mode = ""; @@ -104,9 +105,8 @@ public class SBInfo { if (event.gui instanceof GuiChest) { GuiChest chest = (GuiChest) event.gui; ContainerChest container = (ContainerChest) chest.inventorySlots; - String containerName = container.getLowerChestInventory().getDisplayName().getUnformattedText(); - lastOpenContainerName = containerName; + lastOpenContainerName = container.getLowerChestInventory().getDisplayName().getUnformattedText(); } } @@ -296,8 +296,8 @@ public class SBInfo { } isInDungeon = tempIsInDungeon; + boolean containsStranded = false; for (String line : lines) { //Slayer stuff - //System.out.println(line); if (line.contains("Tarantula Broodfather")) { slayer = "Tarantula"; } else if (line.contains("Revenant Horror")) { @@ -328,7 +328,9 @@ public class SBInfo { SlayerOverlay.slayerTier = 5; } } + if (line.contains("☀ Stranded")) containsStranded = true; } + stranded = containsStranded; if (lines.size() >= 5) { date = Utils.cleanColour(lines.get(1)).trim(); |
