Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Update SuccessDestroyInventoryClick.java
Browse files Browse the repository at this point in the history
- Fix previous enchants being saved in memory
  • Loading branch information
Puyodead1 committed Nov 7, 2019
1 parent 80d91eb commit 266ed22
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public void InventoryClickEvent(InventoryClickEvent e) {
if (invTitle.equals("Success & Destroy Configuration")) {
e.setCancelled(true);
if (e.getCurrentItem().getType().equals(Material.BOOK)) {
EnchantConstructor.getEnchants().clear();
player.getInventory().addItem(e.getCurrentItem().clone());
player.getOpenInventory().close();
} else {
Expand Down

0 comments on commit 266ed22

Please sign in to comment.