From 30d66355473f774fd42498e6ad8e4722912780fc Mon Sep 17 00:00:00 2001 From: Silent Date: Sat, 30 Nov 2024 01:13:26 +0100 Subject: [PATCH] refresh to current page of favorites --- src/main/java/tsp/headdb/core/util/MenuSetup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tsp/headdb/core/util/MenuSetup.java b/src/main/java/tsp/headdb/core/util/MenuSetup.java index 81927a2..2f5a587 100644 --- a/src/main/java/tsp/headdb/core/util/MenuSetup.java +++ b/src/main/java/tsp/headdb/core/util/MenuSetup.java @@ -178,7 +178,7 @@ public final class MenuSetup { // Update favorites after removing the head HeadAPI.findFavoriteHeads(player.getUniqueId(), player.hasPermission("headdb.admin")).thenAcceptAsync(updated -> { if (!updated.isEmpty()) { - favorites(player, page); // Refresh the GUI + favorites(player, favoritesGui.getCurrentPage()); // Refresh the GUI } else { mainGui.open(player); }