mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 17:31:06 +01:00
SPIGOT-4895: Bed doesn't explode in Nether and The End
This commit is contained in:
parent
ee8818473d
commit
6ceffb0d2a
1 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue