Skip to content

Commit

Permalink
Update src/main/java/com/iridium/iridiumskyblock/managers/SchematicMa…
Browse files Browse the repository at this point in the history
…nager.java

Co-authored-by: Peaches_MLG <[email protected]>
  • Loading branch information
sh0inx and PeachesMLG authored Oct 9, 2023
1 parent 86eb002 commit d7c0401
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ public boolean processTransaction(Player player, Schematics.SchematicConfig sche
double moneyCost = schematic.regenCost.money;
Economy economy = IridiumSkyblock.getInstance().getEconomy();

if(moneyCost == 0 || economy != null && economy.getBalance(player) >= moneyCost) {
//INVALID TRANSACTION
if(moneyCost != 0 && economy != null && economy.getBalance(player) < moneyCost) {
//Cannot Afford
return false;
}

Expand Down

0 comments on commit d7c0401

Please sign in to comment.