Fix MaterialData directions being incorrect. Fixes BUKKIT-3160

Prior to 49690f9, BlockFaces were mostly correct in their respective
MaterialData classes. However, a lot of things were not updated since
implementation and broke without being addressed.

This fixes any discrepancies with Block data.

By: feildmaster <admin@feildmaster.com>
This commit is contained in:
Bukkit/Spigot
2012-12-15 23:25:19 -06:00
parent fb2cf30fbe
commit 87f538df31
9 changed files with 130 additions and 103 deletions

View File

@@ -60,22 +60,22 @@ public class Stairs extends MaterialData implements Directional {
byte data;
switch (face) {
case WEST:
case NORTH:
data = 0x3;
break;
case SOUTH:
data = 0x2;
break;
case EAST:
default:
data = 0x0;
break;
case EAST:
case WEST:
data = 0x1;
break;
case NORTH:
data = 0x2;
break;
case SOUTH:
data = 0x3;
break;
}
setData((byte) ((getData() & 0xC) | data));