From 631eaeb09bc697d33d4972a6b2ba0a0b8b1daa83 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 30 Aug 2019 18:34:24 +1000 Subject: [PATCH] SPIGOT-5297: PlayerBedLeaveEvent.getBed() returns player location --- nms-patches/EntityHuman.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/EntityHuman.patch b/nms-patches/EntityHuman.patch index e38c7c748..b5d58a19a 100644 --- a/nms-patches/EntityHuman.patch +++ b/nms-patches/EntityHuman.patch @@ -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 {