mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-23 02:35:18 +01:00
Fixed a blacklisting issue.
This commit is contained in:
parent
ba0a76bdf6
commit
baf2b605d5
@ -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;
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user