Update UnknownPackageReward.java

This commit is contained in:
Alexander Meech 2017-10-14 21:46:14 -07:00
parent 9be986c2d3
commit e327d63f9a

View File

@ -60,7 +60,11 @@ public class UnknownPackageReward extends Reward
{
return false;
}
if (DONATION_MANAGER.Get(player).ownsUnknownSalesPackage(_packageName))
if (DONATION_MANAGER.Get(player).ownsUnknownSalesPackage(_package))
{
return false;
}
if (INVENTORY_MANAGER.Get(player).getItemCount(_package) > 0)
{
return false;
}
@ -70,6 +74,10 @@ public class UnknownPackageReward extends Reward
{
return false;
}
if (INVENTORY_MANAGER.Get(player).getItemCount(alternative) > 0)
{
return false;
}
}
return true;
}