mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Default to BlockFace.SELF for null directions in getFacing
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user