geforkt von Mirrors/FastAsyncWorldEdit
A player is not always present when the InteractBlockEvent is fired anymore
Dieser Commit ist enthalten in:
Ursprung
205e2d212e
Commit
a50e337224
@ -146,6 +146,10 @@ public class SpongeWorldEdit {
|
|||||||
|
|
||||||
WorldEdit we = WorldEdit.getInstance();
|
WorldEdit we = WorldEdit.getInstance();
|
||||||
Optional<Player> optPlayer = event.getCause().get(NamedCause.SOURCE, Player.class);
|
Optional<Player> optPlayer = event.getCause().get(NamedCause.SOURCE, Player.class);
|
||||||
|
if (!optPlayer.isPresent()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SpongePlayer player = wrapPlayer(optPlayer.get());
|
SpongePlayer player = wrapPlayer(optPlayer.get());
|
||||||
com.sk89q.worldedit.world.World world = player.getWorld();
|
com.sk89q.worldedit.world.World world = player.getWorld();
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren