Skip to content

Commit

Permalink
Update src/main/java/com/iridium/iridiumskyblock/commands/RegenComman…
Browse files Browse the repository at this point in the history
…d.java

Co-authored-by: Peaches_MLG <[email protected]>
  • Loading branch information
sh0inx and PeachesMLG authored Oct 9, 2023
1 parent 01a8b32 commit 69aa68e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public boolean execute(User user, Island island, String[] args, IridiumTeams<Isl

Schematics.SchematicConfig schematicConfig = IridiumSkyblock.getInstance().getSchematics().schematics.get(schematic.get());

if(!(schematicConfig.regenCost.money == 0 && schematicConfig.regenCost.bankItems.isEmpty())) {
if(schematicConfig.regenCost.money != 0 && !schematicConfig.regenCost.bankItems.isEmpty()) {
if(!IridiumSkyblock.getInstance().getSchematicManager().processTransaction(player, schematicConfig)) {
return false;
}
Expand Down

0 comments on commit 69aa68e

Please sign in to comment.