mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 23:12:10 -08:00
fixed some NPE's and other errors
This commit is contained in:
parent
c2df049383
commit
68391a7522
12 changed files with 82 additions and 15 deletions
|
|
@ -203,7 +203,9 @@ public class RateCard {
|
|||
maxSingleCount = Math.max(maxSingleCount, typeCount);
|
||||
}
|
||||
}
|
||||
return 2 * converted + 3 * (10 - SINGLE_PENALTY[maxSingleCount]/*-DOUBLE_PENALTY[doubleCount]*/);
|
||||
if (maxSingleCount > 5)
|
||||
maxSingleCount = 5;
|
||||
return 2 * converted + 3 * (10 - SINGLE_PENALTY[maxSingleCount]/*-DOUBLE_PENALTY[doubleCount]*/);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue