diff --git a/paper-api/src/main/java/org/bukkit/material/Button.java b/paper-api/src/main/java/org/bukkit/material/Button.java index c6d1aedee9..21335f2eb7 100644 --- a/paper-api/src/main/java/org/bukkit/material/Button.java +++ b/paper-api/src/main/java/org/bukkit/material/Button.java @@ -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: diff --git a/paper-api/src/main/java/org/bukkit/material/Lever.java b/paper-api/src/main/java/org/bukkit/material/Lever.java index 737d16c2b1..5d6e7f4ce5 100644 --- a/paper-api/src/main/java/org/bukkit/material/Lever.java +++ b/paper-api/src/main/java/org/bukkit/material/Lever.java @@ -40,7 +40,7 @@ public class Lever 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: