diff --git a/src/main/java/us/mytheria/bloblib/entities/BlobEditor.java b/src/main/java/us/mytheria/bloblib/entities/BlobEditor.java index a9afa53d..17d24123 100644 --- a/src/main/java/us/mytheria/bloblib/entities/BlobEditor.java +++ b/src/main/java/us/mytheria/bloblib/entities/BlobEditor.java @@ -82,7 +82,7 @@ public List> page(int page, int itemsPerPage) { } @SuppressWarnings("unchecked") - public void removeElement(Player player) { + public void removeElement(Player player, Runnable onRemove) { loadPage(getPage(), false); selectorManager.addSelectorListener(player, BlobSelectorListener.build(player, () -> { @@ -95,6 +95,7 @@ public void removeElement(Player player) { return; } list.remove(input); + onRemove.run(); }); }, Collections.singletonList(new BlobActionBar(ChatColor.GRAY + "Click an element to remove it")), this));