Skip to content

Commit

Permalink
fix: fixed bestiary not rendering buttons when resizing the window
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBv committed Jan 5, 2024
1 parent abccda5 commit 3755c8a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ private static Item getItemByRegistryName(String registryName) {
@Override
protected void init() {
super.init();
this.clearWidgets();
this.indexButtons.clear();
int centerX = (width - X) / 2;
int centerY = (height - Y) / 2;
this.previousPage = new ChangePageButton(centerX + 15, centerY + 215, false, 0, (p_214132_1_) -> {
Expand Down

0 comments on commit 3755c8a

Please sign in to comment.