Default to BlockFace.SELF for null directions in getFacing
This commit is contained in:
parent
961287a4cc
commit
7bc9c08eb4
@ -49,7 +49,9 @@ public class CraftHanging extends CraftEntity implements Hanging {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public BlockFace getFacing() {
|
public BlockFace getFacing() {
|
||||||
switch (this.getHandle().direction) {
|
EnumDirection direction = this.getHandle().direction;
|
||||||
|
if (direction == null) return BlockFace.SELF;
|
||||||
|
switch (direction) {
|
||||||
case SOUTH:
|
case SOUTH:
|
||||||
default:
|
default:
|
||||||
return BlockFace.SOUTH;
|
return BlockFace.SOUTH;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user