diff --git a/bukkit/src/main/java/com/griefdefender/listener/PlayerEventHandler.java b/bukkit/src/main/java/com/griefdefender/listener/PlayerEventHandler.java index a645d59..084e55b 100644 --- a/bukkit/src/main/java/com/griefdefender/listener/PlayerEventHandler.java +++ b/bukkit/src/main/java/com/griefdefender/listener/PlayerEventHandler.java @@ -445,8 +445,8 @@ public void onPlayerPickupItem(PlayerPickupItemEvent event) { final GDPlayerData playerData = this.dataStore.getOrCreatePlayerData(location.getWorld(), ownerUniqueId); if (playerData.lockPlayerDeathDrops) { event.setCancelled(true); + return; } - return; } NMSUtil.getInstance().removeItemPersistentData(event.getItem().getItemStack(), "owner"); }