3
0
Mirror von https://github.com/TheSilentPro/HeadDB.git synchronisiert 2024-12-26 02:50:07 +01:00

refresh to current page of favorites

Dieser Commit ist enthalten in:
Silent 2024-11-30 01:13:26 +01:00
Ursprung d897b92e3a
Commit 30d6635547

Datei anzeigen

@ -178,7 +178,7 @@ public final class MenuSetup {
// Update favorites after removing the head // Update favorites after removing the head
HeadAPI.findFavoriteHeads(player.getUniqueId(), player.hasPermission("headdb.admin")).thenAcceptAsync(updated -> { HeadAPI.findFavoriteHeads(player.getUniqueId(), player.hasPermission("headdb.admin")).thenAcceptAsync(updated -> {
if (!updated.isEmpty()) { if (!updated.isEmpty()) {
favorites(player, page); // Refresh the GUI favorites(player, favoritesGui.getCurrentPage()); // Refresh the GUI
} else { } else {
mainGui.open(player); mainGui.open(player);
} }