From c18830ce756a61272c9caac0da8432adcbacd559 Mon Sep 17 00:00:00 2001 From: pop4959 Date: Sat, 26 Jun 2021 19:36:28 -0700 Subject: [PATCH] Fix pickup delay with essentials.build.pickup permission (#4273) Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com> --- .../essentials/antibuild/EssentialsAntiBuildListener.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/EssentialsAntiBuild/src/main/java/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java b/EssentialsAntiBuild/src/main/java/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java index 5270889e1..97f0b7675 100644 --- a/EssentialsAntiBuild/src/main/java/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java +++ b/EssentialsAntiBuild/src/main/java/com/earth2me/essentials/antibuild/EssentialsAntiBuildListener.java @@ -393,7 +393,6 @@ public class EssentialsAntiBuildListener implements Listener { if (prot.getSettingBool(AntiBuildConfig.disable_use) && !user.canBuild()) { if (!metaPermCheck(user, "pickup", item.getType(), item.getDurability())) { event.setCancelled(true); - event.getItem().setPickupDelay(50); } } } @@ -409,7 +408,6 @@ public class EssentialsAntiBuildListener implements Listener { if (prot.getSettingBool(AntiBuildConfig.disable_use) && !user.canBuild()) { if (!metaPermCheck(user, "pickup", item.getType(), item.getDurability())) { event.setCancelled(true); - event.getItem().setPickupDelay(50); } } }