From 55450a586e32721816a547fcd2d20c39722759bb Mon Sep 17 00:00:00 2001 From: acrylic-style Date: Sun, 1 Oct 2023 23:40:17 +0900 Subject: [PATCH] fix: possible dupe with other plugins --- build.gradle.kts | 2 +- .../mori01231/lifecore/listener/DropProtectListener.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 3c97fbb..1516e22 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -9,7 +9,7 @@ plugins { } group = "net.azisaba" -version = "6.7.4" +version = "6.7.5" java { toolchain.languageVersion.set(JavaLanguageVersion.of(8)) diff --git a/src/main/java/com/github/mori01231/lifecore/listener/DropProtectListener.java b/src/main/java/com/github/mori01231/lifecore/listener/DropProtectListener.java index 9b9392c..e281db1 100644 --- a/src/main/java/com/github/mori01231/lifecore/listener/DropProtectListener.java +++ b/src/main/java/com/github/mori01231/lifecore/listener/DropProtectListener.java @@ -9,7 +9,6 @@ import net.minecraft.server.v1_15_R1.EntityItem; import net.minecraft.server.v1_15_R1.Items; import org.bukkit.ChatColor; -import org.bukkit.GameMode; import org.bukkit.craftbukkit.v1_15_R1.entity.CraftItem; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; @@ -29,7 +28,7 @@ public DropProtectListener(@NotNull LifeCore plugin) { } @SuppressWarnings("unchecked") - @EventHandler + @EventHandler(ignoreCancelled = true) public void onDrop(PlayerDropItemEvent e) { Rarity rarity = rarityAPI.getRarityByItemStack(e.getItemDrop().getItemStack()); boolean shouldCancel;