Fixed a blacklisting issue.

This commit is contained in:
Brianna 2019-07-10 23:01:13 -04:00
parent ba0a76bdf6
commit baf2b605d5
2 changed files with 0 additions and 5 deletions

View File

@ -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;
}

View File

@ -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());
}
}