Skip to content

Commit

Permalink
Fix a bug with Vault Economy not found in loading process.
Browse files Browse the repository at this point in the history
If plugin that enables Vault do it after BentoBox, then a lot of addons disabled their economy settings. This should fix it.
  • Loading branch information
BONNe committed Oct 2, 2020
1 parent 3aa7631 commit 76755c8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/java/world/bentobox/biomes/BiomesAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ private void findVaultPlugin()
}
else
{
this.economyProvided = true;
this.vaultHook = vault.get();
}
}
Expand Down Expand Up @@ -335,7 +334,7 @@ public Settings getSettings()
*/
public boolean isEconomyProvided()
{
return this.economyProvided;
return this.vaultHook != null && this.vaultHook.hook();
}


Expand Down Expand Up @@ -409,11 +408,6 @@ public boolean isGreenhousesProvided()
*/
private Settings settings;

/**
* This boolean indicate if economy is enabled.
*/
private boolean economyProvided;

/**
* VaultHook that process economy.
*/
Expand Down

0 comments on commit 76755c8

Please sign in to comment.