13
0
geforkt von Mirrors/Paper

Default to BlockFace.SELF for null directions in getFacing

By: Nathan Wolf <nathan@elmakers.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2015-05-22 19:42:09 -07:00
Ursprung e5baf3afa5
Commit 151cf48284

Datei anzeigen

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