mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
Default to BlockFace.SELF for null directions in getFacing
By: Nathan Wolf <nathan@elmakers.com>
This commit is contained in:
parent
e5baf3afa5
commit
151cf48284
@ -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…
Reference in New Issue
Block a user