diff options
Diffstat (limited to 'patches/unapplied/server/0441-Add-OBSTRUCTED-reason-to-BedEnterResult.patch')
-rw-r--r-- | patches/unapplied/server/0441-Add-OBSTRUCTED-reason-to-BedEnterResult.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/unapplied/server/0441-Add-OBSTRUCTED-reason-to-BedEnterResult.patch b/patches/unapplied/server/0441-Add-OBSTRUCTED-reason-to-BedEnterResult.patch new file mode 100644 index 0000000000..675b673d78 --- /dev/null +++ b/patches/unapplied/server/0441-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 798a608784d4880f8d8e77960cfaf27700d06ddb..f8751bf07479d6619ec1acb19f84a9af00ecd308 100644 +--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java ++++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java +@@ -312,6 +312,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; + } |