geforkt von Mirrors/Paper
22 Zeilen
1.1 KiB
Diff
22 Zeilen
1.1 KiB
Diff
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
|
|
index c2eefe215f47e36cc2b8476750ae00ec88f826a6..7f8dbc94ad04ff58e0ee7591b42e268ee4b75576 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
|
@@ -263,6 +263,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;
|
|
}
|