Fixes a check which broke all bungee portals

This commit is contained in:
Kristian Knarvik 2021-10-23 22:16:36 +02:00
parent 2541391d3e
commit a100ad3fea

View File

@ -143,7 +143,7 @@ public class PlayerEventListener implements Listener {
Portal destination = entrancePortal.getPortalActivator().getDestination(player);
//Catch always open portals without a valid destination to prevent the user for being teleported and denied
if (destination == null) {
if (!entrancePortal.getOptions().isBungee() && destination == null) {
return false;
}