2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jake Potrebic <jake.m.potrebic@gmail.com>
|
|
|
|
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
|
2024-06-14 19:15:52 +02:00
|
|
|
index 4679e1399288db68ae0325cf62ea1a8fb6d6c80b..57e25bf61b2d25d736a97e9aadc8cfaddf29ea58 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
2024-06-13 22:57:13 +02:00
|
|
|
@@ -303,6 +303,10 @@ public class CraftEventFactory {
|
2021-06-11 14:02:28 +02:00
|
|
|
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;
|
|
|
|
}
|