3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 04:50:06 +01:00

Default to BlockFace.SELF for null directions in getFacing

Dieser Commit ist enthalten in:
Nathan Wolf 2015-05-22 19:42:09 -07:00 committet von md_5
Ursprung 961287a4cc
Commit 7bc9c08eb4

Datei anzeigen

@ -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;