Fixed null

This commit is contained in:
sekwah 2018-02-22 03:24:52 +00:00 committed by Sekwah
parent be858f308b
commit a80b8fc257

View File

@ -101,12 +101,11 @@ public class PortalManager {
public AdvancedPortal createPortal(String name, PlayerContainer player, ArrayList<DataTag> tags) throws PortalException {
if (this.portalSelectorLeftClick.containsKey(player.getUUID().toString())
&& this.portalSelectorRightClick.containsKey(player.getUUID().toString())) {
this.createPortal(name, player, this.portalSelectorLeftClick.get(player.getUUID().toString()),
return this.createPortal(name, player, this.portalSelectorLeftClick.get(player.getUUID().toString()),
this.portalSelectorRightClick.get(player.getUUID().toString()), tags);
} else {
throw new PortalException("portal.invalidselection");
}
return null;
}
/**