Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Unreleased

- Minor: Enable the leagues notifier for Demonic Pacts. (#932, #933)
- Bugfix: Prevent double notifications to metadata webhook upon TOA Purple Loot. (#930)
- Bugfix: Prevent double notifications to metadata webhook upon TOA Purple Loot. (#930, #934)

## 1.13.2

Expand Down
10 changes: 7 additions & 3 deletions src/main/java/dinkplugin/notifiers/MetaNotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import net.runelite.api.gameval.ObjectID;
import net.runelite.client.callback.ClientThread;
import net.runelite.client.config.ConfigManager;
import net.runelite.client.eventbus.Subscribe;
import net.runelite.client.game.ItemManager;
import net.runelite.client.plugins.chatcommands.ChatCommandsPlugin;
import net.runelite.client.util.QuantityFormatter;
Expand Down Expand Up @@ -104,8 +103,7 @@ public void onWallObjectSpawned(WallObjectSpawned event) {
return;
}

if (isToaPurple && isEnabled()) {
isToaPurple = false;
if (isEnabled()) {
clientThread.invokeAtTickEnd(this::notifyPurpleAmascut);
}
}
Expand Down Expand Up @@ -173,6 +171,12 @@ private void notifyGroupStorage() {
}

private void notifyPurpleAmascut() {
if (isToaPurple) {
isToaPurple = false; // prevent multiple notifications
} else {
return; // not notification worthy
}

// inspect multiloc to ensure local player is the recipient of the purple drop (s/o @rdutta)
for (@Varbit int varbitId : TOA_CHEST_VARBS) {
if (client.getVarbitValue(varbitId) == 2) {
Expand Down
Loading