Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Updated magic values for Skull directions.
Browse files Browse the repository at this point in the history
Minecraft 1.8 switches the representations of east and west.
  • Loading branch information
Aaron1011 authored and SpaceManiac committed Nov 6, 2014
1 parent 54bf878 commit a073295
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/bukkit/material/Skull.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ public void setFacingDirection(BlockFace face) {
break;

case EAST:
data = 0x4;
data = 0x5;
break;

case SOUTH:
data = 0x3;
break;

case WEST:
data = 0x5;
data = 0x4;
}

setData((byte) data);
Expand All @@ -94,10 +94,10 @@ public BlockFace getFacing() {
case 0x3:
return BlockFace.SOUTH;

case 0x4:
case 0x5:
return BlockFace.EAST;

case 0x5:
case 0x4:
return BlockFace.WEST;
}
}
Expand Down

0 comments on commit a073295

Please sign in to comment.