!Swap and notes

This commit is contained in:
HexedHero 2020-10-16 05:06:56 +01:00
parent 2a8874ae1c
commit f9c2014ec3

View File

@ -44,7 +44,8 @@ public class NoClipItem implements Listener {
InventoryPickupItemEvent.getHandlerList().unregister(this);
}
@EventHandler(ignoreCancelled = false, priority = EventPriority.LOWEST)
// Stops items from being picked up by hoppers and portals and then duping them.
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = false)
public void a(InventoryPickupItemEvent event) {
if (event.getItem().equals(item)) {
event.setCancelled(true);
@ -52,7 +53,7 @@ public class NoClipItem implements Listener {
}
}
@EventHandler(ignoreCancelled = false, priority = EventPriority.LOWEST)
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = false)
public void b(EntityPortalEnterEvent event) {
if (event.getEntity().equals(item))
close();