Fix tracking of Heroes of GWEN chests

This commit is contained in:
AlexTheCoder 2017-09-09 12:51:35 -04:00 committed by cnr
parent df1c72624c
commit 00c8aea422

View File

@ -422,9 +422,9 @@ public class CustomerSupport extends MiniPlugin implements ResultSetCallable
{
if (transaction.Coins == 0 && transaction.Gems == 0)
{
if (transaction.SalesPackageName.split(" ").length == 4)
hogChestReceived += Integer.parseInt(transaction.SalesPackageName.split(" ")[3]);
else if (transaction.SalesPackageName.split(" ").length == 3)
if (transaction.SalesPackageName.split(" ").length == 3)
hogChestReceived += Integer.parseInt(transaction.SalesPackageName.split(" ")[2]);
else if (transaction.SalesPackageName.split(" ").length == 2)
hogChestReceived += 1;
}
}