From 1acef2fb388eab176fcb90469d332656e860ecec Mon Sep 17 00:00:00 2001 From: Shyanne Date: Mon, 9 Oct 2023 18:12:31 -0400 Subject: [PATCH] Update src/main/java/com/iridium/iridiumskyblock/managers/SchematicManager.java Co-authored-by: Peaches_MLG --- .../iridium/iridiumskyblock/managers/SchematicManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/iridium/iridiumskyblock/managers/SchematicManager.java b/src/main/java/com/iridium/iridiumskyblock/managers/SchematicManager.java index 325bbd826..b872203a9 100644 --- a/src/main/java/com/iridium/iridiumskyblock/managers/SchematicManager.java +++ b/src/main/java/com/iridium/iridiumskyblock/managers/SchematicManager.java @@ -149,8 +149,8 @@ public boolean processTransaction(Player player, Schematics.SchematicConfig sche for (String schematicBankItem : schematic.regenCost.bankItems.keySet()) { - bank = IridiumSkyblock.getInstance().getTeamManager().getTeamBank(island.get(), schematicBankItem); - bankBalance = bank.getNumber(); + TeamBank bank = IridiumSkyblock.getInstance().getTeamManager().getTeamBank(island.get(), schematicBankItem); + double bankBalance = bank.getNumber(); double cost = round(schematic.regenCost.bankItems.get(schematicBankItem), 2);