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
|
2023-11-04 20:20:01 +01:00
|
|
|
index a19979dac60552791b7a8dd4920ba75b525340ca..826bb30bd0075bb7827c13e43c2a1ce7a814f0ce 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
|
2023-09-22 06:40:51 +02:00
|
|
|
@@ -302,6 +302,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;
|
|
|
|
}
|