Update UnknownPackageReward.java
This commit is contained in:
parent
9be986c2d3
commit
e327d63f9a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user