Skip to content

Commit

Permalink
fix portal event error
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Mar 24, 2019
1 parent cdb0584 commit b34e5e7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -90,7 +90,7 @@ public void onPlayerEntersPortal(PlayerPortalEvent event) {
return;
}
entity = new dEntity(event.getPlayer());
to = new dLocation(event.getTo());
to = event.getTo() == null ? null : new dLocation(event.getTo());
from = new dLocation(event.getFrom());
this.event = event;
fire(event);
Expand Down

0 comments on commit b34e5e7

Please sign in to comment.