loottracker: fix tob not being recorded

* Hopefully fixes tob loot not showing. haven't been able to test it because me no good pvm

Signed-off-by: PKLite <stonewall@pklite.xyz>

* take out old import

Signed-off-by: PKLite <stonewall@pklite.xyz>

* implement Blue's change

* Update LootTrackerPlugin.java

* add missing import

Signed-off-by: PKLite <stonewall@pklite.xyz>
This commit is contained in:
ST0NEWALL
2019-07-28 05:31:51 -04:00
committed by ThatGamerBlue
parent 0023196ca1
commit 81e99a2d9b

View File

@@ -564,16 +564,18 @@ public class LootTrackerPlugin extends Plugin
container = client.getItemContainer(InventoryID.CHAMBERS_OF_XERIC_CHEST);
chestLooted = true;
break;
case (WidgetID.THEATRE_OF_BLOOD_GROUP_ID):
case (WidgetID.THEATRE_OF_BLOOD_REWARD_GROUP_ID):
if (chestLooted)
{
return;
}
int region = WorldPoint.fromLocalInstance(client, client.getLocalPlayer().getLocalLocation()).getRegionID();
if (region != THEATRE_OF_BLOOD_REGION)
if (WorldPoint.fromLocalInstance(client, client.getLocalPlayer()
.getLocalLocation()).getRegionID() != THEATRE_OF_BLOOD_REGION)
{
return;
}
eventType = "Theatre of Blood";
container = client.getItemContainer(InventoryID.THEATRE_OF_BLOOD_CHEST);
chestLooted = true;