From 1d33befb74be384efca0de1eea33ebc4e91dd4d9 Mon Sep 17 00:00:00 2001 From: TheBv Date: Wed, 3 Jan 2024 14:05:23 +0100 Subject: [PATCH] fix: fixed bestiary not rendering buttons when resizing the window --- .../alexthe666/iceandfire/client/gui/bestiary/GuiBestiary.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/github/alexthe666/iceandfire/client/gui/bestiary/GuiBestiary.java b/src/main/java/com/github/alexthe666/iceandfire/client/gui/bestiary/GuiBestiary.java index 5511bfad2..b110a60b1 100644 --- a/src/main/java/com/github/alexthe666/iceandfire/client/gui/bestiary/GuiBestiary.java +++ b/src/main/java/com/github/alexthe666/iceandfire/client/gui/bestiary/GuiBestiary.java @@ -85,6 +85,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_) -> {