mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-25 17:22:02 -07:00
SPIGOT-5297: PlayerBedLeaveEvent.getBed() returns player location
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user