Fixed lenght

This commit is contained in:
LCastr0 2017-04-08 23:11:41 -03:00
parent de46f2db70
commit 7db5805f16

View File

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