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; }