fix bug with reward amounts
This commit is contained in:
parent
1e7ed8d491
commit
228cca4805
@ -45,7 +45,7 @@ public class InventoryReward extends AbstractReward
|
||||
{
|
||||
int amountToGive;
|
||||
|
||||
if (_minAmount > _maxAmount)
|
||||
if (_minAmount != _maxAmount)
|
||||
{
|
||||
amountToGive = _random.nextInt(_maxAmount - _minAmount) + _minAmount;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user