mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Additional comment for #7014
This commit is contained in:
parent
dbea1e35eb
commit
ee8d459c8a
1 changed files with 7 additions and 0 deletions
|
@ -482,6 +482,13 @@ public enum CardRepository {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Warning, don't use db functions in card's code - it generate heavy db loading in AI simulations. If you
|
||||||
|
* need that feature then check for simulation mode. See https://github.com/magefree/mage/issues/7014
|
||||||
|
*
|
||||||
|
* @param criteria
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
public List<CardInfo> findCards(CardCriteria criteria) {
|
public List<CardInfo> findCards(CardCriteria criteria) {
|
||||||
try {
|
try {
|
||||||
QueryBuilder<CardInfo, Object> queryBuilder = cardDao.queryBuilder();
|
QueryBuilder<CardInfo, Object> queryBuilder = cardDao.queryBuilder();
|
||||||
|
|
Loading…
Reference in a new issue