mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 23:22:10 -07:00
Add OBSTRUCTED reason to BedEnterResult
This commit is contained in:
@@ -312,6 +312,10 @@ public class CraftEventFactory {
|
|||||||
return BedEnterResult.TOO_FAR_AWAY;
|
return BedEnterResult.TOO_FAR_AWAY;
|
||||||
case NOT_SAFE:
|
case NOT_SAFE:
|
||||||
return BedEnterResult.NOT_SAFE;
|
return BedEnterResult.NOT_SAFE;
|
||||||
|
// Paper start
|
||||||
|
case OBSTRUCTED:
|
||||||
|
return BedEnterResult.OBSTRUCTED;
|
||||||
|
// Paper end
|
||||||
default:
|
default:
|
||||||
return BedEnterResult.OTHER_PROBLEM;
|
return BedEnterResult.OTHER_PROBLEM;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user