Fixed Button and Lever MaterialData returning incorrect getAttachedFace()

This commit is contained in:
Dinnerbone
2011-01-20 01:14:49 +00:00
parent fbc27c0842
commit 810e352f3d
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ public class Button extends MaterialData implements Redstone, Attachable {
* @return BlockFace attached to
*/
public BlockFace getAttachedFace() {
byte data = (byte) (getData() ^ 0x8);
byte data = (byte) (getData() ^ 0x7);
switch (data) {
case 0x1: