Don't wrap null player

This commit is contained in:
Jesse Boyd 2016-08-05 10:39:20 +10:00
parent bde226e7cd
commit 8e5e2ccafa

View File

@ -190,7 +190,7 @@ public class EditSession implements Extent {
event = new EditSessionEvent(world, player == null ? null : (player.getPlayer()), -1, null);
}
event.setEditSession(this);
if (player == null) {
if (player == null && event.getActor() != null) {
player = FawePlayer.wrap(event.getActor());
}
this.player = player;