aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0449-Add-OBSTRUCTED-reason-to-BedEnterResult.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0449-Add-OBSTRUCTED-reason-to-BedEnterResult.patch')
-rw-r--r--patches/server/0449-Add-OBSTRUCTED-reason-to-BedEnterResult.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/server/0449-Add-OBSTRUCTED-reason-to-BedEnterResult.patch b/patches/server/0449-Add-OBSTRUCTED-reason-to-BedEnterResult.patch
new file mode 100644
index 0000000000..decc5ee07c
--- /dev/null
+++ b/patches/server/0449-Add-OBSTRUCTED-reason-to-BedEnterResult.patch
@@ -0,0 +1,21 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Jake Potrebic <[email protected]>
+Date: Thu, 24 Dec 2020 12:43:39 -0800
+Subject: [PATCH] Add OBSTRUCTED reason to BedEnterResult
+
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
+index dc7c73f36b7df05ee34e9686c99c44a24acecdcb..22bfea79a98963d4f1a7ac61fac7b194e929a4f6 100644
+--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
++++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
+@@ -304,6 +304,10 @@ public class CraftEventFactory {
+ return BedEnterResult.TOO_FAR_AWAY;
+ case NOT_SAFE:
+ return BedEnterResult.NOT_SAFE;
++ // Paper start
++ case OBSTRUCTED:
++ return BedEnterResult.OBSTRUCTED;
++ // Paper end
+ default:
+ return BedEnterResult.OTHER_PROBLEM;
+ }