mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-08 08:08:05 +01:00
Don't continue checking if account can hold currency if already done
This commit is contained in:
parent
781e017ae9
commit
e57bf94923
@ -123,7 +123,7 @@ public class ReserveListener extends EconomyAdapter {
|
||||
|
||||
@EventHandler
|
||||
public void onCurrencyHoldCheck(CurrencyHoldEvent event) {
|
||||
if (event.getAccount() == null || !transactionCanFail()) {
|
||||
if (event.getAccount() == null || !transactionCanFail() || event.canHold()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -230,7 +230,7 @@ public class VaultListener extends EconomyAdapter {
|
||||
|
||||
@EventHandler
|
||||
public void onCurrencyHoldCheck(CurrencyHoldEvent event) {
|
||||
if (!checkSetup() || event.getAccount() == null || !transactionCanFail()) {
|
||||
if (!checkSetup() || event.getAccount() == null || !transactionCanFail() || event.canHold()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user