Skip to content

Commit

Permalink
Fix an issue when GeneratorViewPanel was not updating border block an…
Browse files Browse the repository at this point in the history
…d border block name.
  • Loading branch information
BONNe committed Dec 5, 2020
1 parent ed89419 commit 5995c20
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,13 @@ public void build()
name(this.user.getTranslation(Constants.TITLE + "view-generator",
Constants.GENERATOR, this.generatorTier.getFriendlyName()));

GuiUtils.fillBorder(panelBuilder, Material.MAGENTA_STAINED_GLASS_PANE);
if (!this.addon.getSettings().getBorderBlock().isAir())
{
GuiUtils.fillBorder(panelBuilder,
5,
this.addon.getSettings().getBorderBlock(),
this.addon.getSettings().getBorderBlockName());
}

this.populateHeader(panelBuilder);

Expand Down

0 comments on commit 5995c20

Please sign in to comment.