mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Fixed Button and Lever MaterialData returning incorrect getAttachedFace()
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
108a146a8b
commit
4cd2844713
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ public class Button extends MaterialData implements Redstone, Attachable {
|
||||||
* @return BlockFace attached to
|
* @return BlockFace attached to
|
||||||
*/
|
*/
|
||||||
public BlockFace getAttachedFace() {
|
public BlockFace getAttachedFace() {
|
||||||
byte data = (byte) (getData() ^ 0x8);
|
byte data = (byte) (getData() ^ 0x7);
|
||||||
|
|
||||||
switch (data) {
|
switch (data) {
|
||||||
case 0x1:
|
case 0x1:
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class Lever extends MaterialData implements Redstone, Attachable {
|
||||||
* @return BlockFace attached to
|
* @return BlockFace attached to
|
||||||
*/
|
*/
|
||||||
public BlockFace getAttachedFace() {
|
public BlockFace getAttachedFace() {
|
||||||
byte data = (byte) (getData() ^ 0x8);
|
byte data = (byte) (getData() ^ 0x7);
|
||||||
|
|
||||||
switch (data) {
|
switch (data) {
|
||||||
case 0x1:
|
case 0x1:
|
||||||
|
|
Loading…
Reference in a new issue