Skip to content

Commit

Permalink
update: make drop protect work on creative mode
Browse files Browse the repository at this point in the history
  • Loading branch information
acrylic-style committed Sep 28, 2023
1 parent b206036 commit 5399d6b
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ public DropProtectListener(@NotNull LifeCore plugin) {
@SuppressWarnings("unchecked")
@EventHandler
public void onDrop(PlayerDropItemEvent e) {
if (e.getPlayer().getGameMode() == GameMode.CREATIVE) {
return;
}
Rarity rarity = rarityAPI.getRarityByItemStack(e.getItemDrop().getItemStack());
boolean shouldCancel;
if (rarity == null) {
Expand Down

0 comments on commit 5399d6b

Please sign in to comment.