Increase priority of EntityPortalEvent listener

https://github.com/BentoBoxWorld/BentoBox/issues/1866
This commit is contained in:
tastybento 2021-10-26 20:49:38 -07:00
parent 6aa7869b17
commit 8752e19e5d
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ public class PortalTeleportationListener implements Listener {
*
* @param e - event
*/
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
public boolean onEntityPortal(EntityPortalEvent e) {
if (plugin.getIWM().inWorld(e.getFrom())) {
Optional<Material> mat = Arrays.stream(BlockFace.values())