From 6ceffb0d2aa1d4118b70274c5b7603fb2e32ab35 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 9 May 2019 08:56:32 +1000 Subject: [PATCH] SPIGOT-4895: Bed doesn't explode in Nether and The End --- nms-patches/BlockBed.patch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nms-patches/BlockBed.patch b/nms-patches/BlockBed.patch index 4822b8d554..998bbe6e0c 100644 --- a/nms-patches/BlockBed.patch +++ b/nms-patches/BlockBed.patch @@ -1,6 +1,6 @@ --- a/net/minecraft/server/BlockBed.java +++ b/net/minecraft/server/BlockBed.java -@@ -42,20 +42,37 @@ +@@ -42,12 +42,22 @@ } } @@ -16,15 +16,15 @@ + BlockPosition finalblockposition = blockposition; + // CraftBukkit end entityhuman.sleep(blockposition).ifLeft((entityhuman_enumbedresult) -> { ++ // CraftBukkit start - handling bed explosion from below here ++ if (entityhuman_enumbedresult == EntityHuman.EnumBedResult.NOT_POSSIBLE_HERE) { ++ this.explodeBed(finaliblockdata, world, finalblockposition); ++ } else ++ // CraftBukkit end if (entityhuman_enumbedresult != null) { entityhuman.a(entityhuman_enumbedresult.a(), true); } -+ // CraftBukkit start - handling bed explosion from below here -+ else if (entityhuman_enumbedresult == EntityHuman.EnumBedResult.NOT_POSSIBLE_HERE) { -+ this.explodeBed(finaliblockdata, world, finalblockposition); -+ } -+ // CraftBukkit end - +@@ -55,7 +65,14 @@ }); return true; }