Skip to content

Commit

Permalink
Hide infobox outside the labs
Browse files Browse the repository at this point in the history
Also removed the duplicate config group
  • Loading branch information
BlueSoapTurtle committed Oct 28, 2024
1 parent dd8f1f8 commit 33ed078
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

@ConfigGroup(CONFIG_GROUP)
public interface MasteringMixologyConfig extends Config {
String GROUP = "masteringmixology";

String CONFIG_GROUP = "masteringmixology";

@ConfigSection(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ public void onWidgetClosed(WidgetClosed event) {

highlightedObjects.clear();
inLab = false;
updateInfoboxes();
}

@Subscribe
Expand Down Expand Up @@ -474,6 +475,7 @@ private void initialize() {
updatePotionOrders();
highlightLevers();
tryHighlightNextStation();
updateInfoboxes();
}

public void highlightObject(AlchemyObject alchemyObject, Color color) {
Expand Down Expand Up @@ -650,7 +652,7 @@ private PotionModifier getPotionModifier(int orderIdx) {

private void updateInfoboxes() {
// Setup the orders fulfilled infobox
if (config.showOrdersFulfilledInfobox()) {
if (config.showOrdersFulfilledInfobox() && inLab) {
int ordersFulfilled = client.getVarpValue(VARP_ORDERS_FULFILLED);
if (ordersFulfilledInfoBox == null) {
BufferedImage image = itemManager.getImage(ItemID.ALDARIUM);
Expand Down

0 comments on commit 33ed078

Please sign in to comment.