mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
SPIGOT-5297: PlayerBedLeaveEvent.getBed() returns player location
By: md_5 <git@md-5.net>
This commit is contained in:
parent
cfd992a9d4
commit
5757652da1
@ -379,7 +379,7 @@
|
||||
+ Player player = (Player) this.getBukkitEntity();
|
||||
+
|
||||
+ org.bukkit.block.Block bed;
|
||||
+ BlockPosition blockposition = this.getBed();
|
||||
+ BlockPosition blockposition = optional.orElse(null);
|
||||
+ if (blockposition != null) {
|
||||
+ bed = this.world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ());
|
||||
+ } else {
|
||||
|
Loading…
Reference in New Issue
Block a user