mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-24 19:46:34 +01:00
Don't wrap null player
This commit is contained in:
parent
bde226e7cd
commit
8e5e2ccafa
@ -190,7 +190,7 @@ public class EditSession implements Extent {
|
|||||||
event = new EditSessionEvent(world, player == null ? null : (player.getPlayer()), -1, null);
|
event = new EditSessionEvent(world, player == null ? null : (player.getPlayer()), -1, null);
|
||||||
}
|
}
|
||||||
event.setEditSession(this);
|
event.setEditSession(this);
|
||||||
if (player == null) {
|
if (player == null && event.getActor() != null) {
|
||||||
player = FawePlayer.wrap(event.getActor());
|
player = FawePlayer.wrap(event.getActor());
|
||||||
}
|
}
|
||||||
this.player = player;
|
this.player = player;
|
||||||
|
Loading…
Reference in New Issue
Block a user