mirror of
https://github.com/PaperMC/Paper.git
synced 2024-08-23 13:03:05 +02:00
22 lines
1.1 KiB
Diff
22 lines
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 64cfa14aa4e32430a6970fd4f3654a56146ba807..34c7b1213b3f83ff1a1f2d606a9c25e57fea8ef3 100644
|
||
|
--- a/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
||
|
+++ b/src/main/java/org/bukkit/craftbukkit/event/CraftEventFactory.java
|
||
|
@@ -259,6 +259,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;
|
||
|
}
|