mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 20:50:41 +01:00
Default to BlockFace.SELF for null directions in getFacing
This commit is contained in:
parent
961287a4cc
commit
7bc9c08eb4
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,9 @@ public class CraftHanging extends CraftEntity implements Hanging {
|
|||
}
|
||||
|
||||
public BlockFace getFacing() {
|
||||
switch (this.getHandle().direction) {
|
||||
EnumDirection direction = this.getHandle().direction;
|
||||
if (direction == null) return BlockFace.SELF;
|
||||
switch (direction) {
|
||||
case SOUTH:
|
||||
default:
|
||||
return BlockFace.SOUTH;
|
||||
|
|
Loading…
Reference in a new issue