mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
SPIGOT-5297: PlayerBedLeaveEvent.getBed() returns player location
This commit is contained in:
parent
8d4bc54183
commit
631eaeb09b
1 changed files with 1 additions and 1 deletions
|
@ -379,7 +379,7 @@
|
||||||
+ Player player = (Player) this.getBukkitEntity();
|
+ Player player = (Player) this.getBukkitEntity();
|
||||||
+
|
+
|
||||||
+ org.bukkit.block.Block bed;
|
+ org.bukkit.block.Block bed;
|
||||||
+ BlockPosition blockposition = this.getBed();
|
+ BlockPosition blockposition = optional.orElse(null);
|
||||||
+ if (blockposition != null) {
|
+ if (blockposition != null) {
|
||||||
+ bed = this.world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
+ bed = this.world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
||||||
+ } else {
|
+ } else {
|
||||||
|
|
Loading…
Reference in a new issue