From cee0b892b3b9cbefa856d299f49beda8bbdb220a Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 27 Mar 2023 18:59:47 +0200 Subject: [PATCH] Fix visuals of SWListInv with no dynamic size --- SpigotCore_Main/src/de/steamwar/inventory/SWListInv.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SpigotCore_Main/src/de/steamwar/inventory/SWListInv.java b/SpigotCore_Main/src/de/steamwar/inventory/SWListInv.java index 28c92fc..8851081 100644 --- a/SpigotCore_Main/src/de/steamwar/inventory/SWListInv.java +++ b/SpigotCore_Main/src/de/steamwar/inventory/SWListInv.java @@ -80,6 +80,11 @@ public class SWListInv extends SWInventory { setItem(53, SWItem.getDye(8), (byte) 8, Core.MESSAGE.parse("SWLISINV_NEXT_PAGE_INACTIVE", player), (ClickType click) -> { }); } + } else if (!dynamicSize) { + setItem(45, SWItem.getDye(8), (byte) 8, Core.MESSAGE.parse("SWLISINV_PREVIOUS_PAGE_INACTIVE", player), (ClickType click) -> { + }); + setItem(53, SWItem.getDye(8), (byte) 8, Core.MESSAGE.parse("SWLISINV_NEXT_PAGE_INACTIVE", player), (ClickType click) -> { + }); } int ipageLimit = elements.size() - page * 45;