More usage of payItems

This commit is contained in:
AnimeGitB
2022-05-11 23:34:22 +09:30
committed by Melledy
Unverified
parent c7d5d8640c
commit 74783cfecd
3 changed files with 74 additions and 117 deletions
@@ -128,7 +128,7 @@ public class GachaManager {
}
// Spend currency
if (banner.getCostItem() > 0 && !player.getInventory().payItems(new ItemParamData[] {new ItemParamData(banner.getCostItem(), times)})) {
if (banner.getCostItem() > 0 && !player.getInventory().payItem(banner.getCostItem(), times)) {
return;
}