mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-08 07:27:39 +01:00
!Swap and notes
This commit is contained in:
parent
2a8874ae1c
commit
f9c2014ec3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user