Default to BlockFace.SELF for null directions in getFacing

This commit is contained in:
Nathan Wolf authored and md_5 committed 2015-05-24 09:25:02 +10:00
1 parent 961287a4cc
commit 7bc9c08eb4
1 file changed
+3 -1
@@ -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;