From baf2b605d556eed02800f7ee5a75a31f1b689b38 Mon Sep 17 00:00:00 2001 From: Brianna Date: Wed, 10 Jul 2019 23:01:13 -0400 Subject: [PATCH] Fixed a blacklisting issue. --- .../epichoppers/hopper/levels/modules/ModuleSuction.java | 4 ---- .../com/songoda/epichoppers/listeners/EntityListeners.java | 1 - 2 files changed, 5 deletions(-) diff --git a/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleSuction.java b/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleSuction.java index f78b543..2e68274 100644 --- a/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleSuction.java +++ b/src/main/java/com/songoda/epichoppers/hopper/levels/modules/ModuleSuction.java @@ -116,10 +116,6 @@ public class ModuleSuction implements Module { return blacklist.contains(uuid); } - public static boolean addToBlacklist(UUID uuid) { - return blacklist.add(uuid); - } - public ItemStack getGUIButton(Hopper hopper) { return null; } diff --git a/src/main/java/com/songoda/epichoppers/listeners/EntityListeners.java b/src/main/java/com/songoda/epichoppers/listeners/EntityListeners.java index 91d81d6..db2885a 100644 --- a/src/main/java/com/songoda/epichoppers/listeners/EntityListeners.java +++ b/src/main/java/com/songoda/epichoppers/listeners/EntityListeners.java @@ -61,6 +61,5 @@ public class EntityListeners implements Listener { public void onPlayerPickup(PlayerPickupItemEvent event) { if (ModuleSuction.isBlacklisted(event.getItem().getUniqueId())) event.setCancelled(true); - ModuleSuction.addToBlacklist(event.getItem().getUniqueId()); } }