Skip to content

Commit

Permalink
Add missing check for biome GUI opening.
Browse files Browse the repository at this point in the history
It was disabled even if players could buy biome.
  • Loading branch information
BONNe committed Sep 23, 2022
1 parent a8e04c8 commit 9bd5f6a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import world.bentobox.bentobox.api.panels.reader.ItemTemplateRecord;
import world.bentobox.bentobox.api.user.User;
import world.bentobox.bentobox.database.objects.Island;
import world.bentobox.bentobox.paperlib.PaperLib;
import world.bentobox.bentobox.util.Util;
import world.bentobox.biomes.BiomesAddon;
import world.bentobox.biomes.config.Settings;
Expand Down Expand Up @@ -82,7 +81,7 @@ protected void build()
}

// Do not open gui if there is no magic sticks.
if (this.biomeList.isEmpty())
if (this.biomeList.isEmpty() && this.numberOfPurchasableBiomes == 0)
{
this.addon.logError("There are no available biomes!");
Utils.sendMessage(this.user, this.user.getTranslation(Constants.ERRORS + "no-biomes",
Expand Down

0 comments on commit 9bd5f6a

Please sign in to comment.